Answer Posted / raghunanda
---With date from existing table to new table.
SQL> create table new_table_name as select * from old_table_name where 1=1;
---without data
SQL> create table new_table_name as select * from old_table_name where 1=2;
Thanks,
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the use of set statement in tsql? : Transact sql
What is a unique key?
What is compute?
How to know the last executed procedure?
what is a tablespace? : Sql dba
What is primary key sql?
What is clustered index sql?
What are the syntax and use of the coalesce function?
What is sql select statement?
What is the most restrictive isolation level? : Transact sql
What is pls integer?
can a stored procedure call itself or recursive stored procedure? : Sql dba
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
What are all ddl commands?
In a distributed database system, can we execute two queries simultaneously?