How we can insert the structure of given table in another table?

Questions by daulat

Showing Answers 1 - 7 of 7 Answers

geeth

  • Feb 28th, 2007
 

hi,

try this


create table <table_name> as select * from xxx where 1=2

  Was this answer useful?  Yes

chandu

  • Mar 14th, 2007
 

table1 select * from table2

  Was this answer useful?  Yes

HI if u want to get the same table structure which is already existing in ur database then SQL QUERY IS create table <table name> as select * from <table name which is already in DB> where 1 = 2;
 
If u want data also then
 create table <table name> as select * from <table name which is already in DB> ;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions