I know the statement:
create table xyz_new as select * from xyz;
Which copies the structure and the data, but what if I just want the structure?
Just use a where clause that won't select any rows:
create table xyz_new as select * from xyz where 1=0;
'Database' 카테고리의 다른 글
Oracle flashback (0) | 2013.04.10 |
---|---|
manual reorg table (0) | 2013.04.08 |
(Oracle) Compile Invalid Public Synonyms (0) | 2013.03.14 |
(Oracle) Data Pump Export (expdp) and Data Pump Import(impdp) (0) | 2013.03.08 |
An Introduction to Data Compression in SQL Server 2008 (0) | 2013.02.01 |