How can I create a table from another table without copying
any values from the old table?

Answer Posted / anji

create table table_name as ( select * from old_table where 1=2)

from this query we can create a new table structure from old
table structure with out data

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is query syntax?

523


Can you join views in sql?

544


How do you update sql?

523


Which command is used to call a stored procedure?

505


How many aggregate functions are available there in sql?

529






Does a user_objects view have an entry for a trigger?

571


what is the difference between primary key and unique key? : Sql dba

532


What is the difference between microsoft sql and mysql?

512


Which one is better subquery or joins?

557


how to run 'mysql' commands from a batch file? : Sql dba

611


What is difference sql and mysql?

535


what is top in tsql? : Transact sql

549


What is the use of pl/sql table?

558


What are different clauses used in sql?

590


Is primary key is clustered index?

531