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 rollback? : Sql dba

603


Why schema is used in sql?

521


What are the uses of merge?

728


What are all different types of collation sensitivity?

532


What is composite data type in pl sql?

568






How do you optimize a stored procedure in sql?

511


Is it possible to sort a column using a column alias?

615


Is sql database free?

541


what are the differences between char and nchar? : Sql dba

601


How to display the records between two range in Oracle SQL Plus?

650


what is data manipulation language? : Sql dba

538


How do I view a sql trace file?

575


What are sql constraints?

572


what is 'mysqladmin' in mysql? : Sql dba

541


Where is pl sql used?

528