If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Create a new table based on existing table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-03, 00:53
rajackl rajackl is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Create a new table based on existing table

Dear All,
I would like to create a new tabe based on an already existing table in informix 9.4 database. I don't want to have the records in the new table from the source table. I tried with the query
"Create table A as select * from B" and it ends up with Syntax error.

Could anyone please help me out in the correct sysntax for the above query ?

Thanks.

Rajac.
Reply With Quote
  #2 (permalink)  
Old 09-26-03, 03:28
chrisha chrisha is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
Re: Create a new table based on existing table

Hi,
try 'dbschema -d <database> -t <table>'(command line unix). This shows the create statement without storage option.
regards,
Chris
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On