Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread creating memory tables using like
Wed, Mar 4 2009 3:52 AMPermanent Link

"Iztok Lajovic"
Hi,

having defined memory database I want to create in memory table using

CREATE TABLE SAMETABLE (LIKE DISKBASE.SOURCETABLE)

In database DISKBASE the table SOURCETABLE exists but I get the error
'ElevateDB Error #401 The table SOURCETABLE does not exist'.

Does LIKE clause not permit qualification?

Iztok Lajovic
KreS, Kreativni sistemi
Wed, Mar 4 2009 4:21 AMPermanent Link

"Iztok Lajovic"
>
> having defined memory database I want to create in memory table using
>
> CREATE TABLE SAMETABLE (LIKE DISKBASE.SOURCETABLE)
>
> In database DISKBASE the table SOURCETABLE exists but I get the error
> 'ElevateDB Error #401 The table SOURCETABLE does not exist'.
>
> Does LIKE clause not permit qualification?
>
> Iztok Lajovic
> KreS, Kreativni sistemi


I found the solution of the problem:

CREATE TABLE SAMETABLE AS SELECT * FROM SOURCETABLE WITH NO DATA

What is intention of LIKE statement or the difference between LIKE clause
and this select statement at least?

Iztok Lajovic
Wed, Mar 4 2009 10:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Iztok,

<< having defined memory database I want to create in memory table using

CREATE TABLE SAMETABLE (LIKE DISKBASE.SOURCETABLE)

In database DISKBASE the table SOURCETABLE exists but I get the error
'ElevateDB Error #401 The table SOURCETABLE does not exist'.

Does LIKE clause not permit qualification? >>

It may not.  If so, I'll make sure that this is corrected since it shuld be
possible.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image