Home » RDBMS Server » Server Administration » Table build from another table
Table build from another table [message #374770] Fri, 29 June 2001 12:54 Go to next message
Ray
Messages: 58
Registered: January 2000
Member
HI,
Is there a way to create a table from another table with a SELECT or INSERT statement if the new table does not exist? Using Version 8.1.7. All of the columns and rows should be the same. Using this for a quick test and didn't want to create table and load data. Thanks in advance.
Re: Table build from another table [message #374771 is a reply to message #374770] Fri, 29 June 2001 13:16 Go to previous messageGo to next message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
create table ABC_NEW as (select * from ABC);
Re: Table build from another table [message #374774 is a reply to message #374770] Fri, 29 June 2001 22:14 Go to previous message
palanikarupaiyan@hotmail.
Messages: 18
Registered: June 2001
Junior Member
as other said create table ABC_NEW as (select * from ABC) , which create another table with loading data from the exiting table.....

If u do wanna creat new table with no data ,

create table ABC_NEW as (select * from ABC where 1= 2); will do.
Previous Topic: Sql to display responsibilities and menus
Next Topic: Re: help
Goto Forum:
  


Current Time: Sat Jul 06 07:29:52 CDT 2024