what command is used to create a table by copying the
structure of another table including constraints ?

Answer Posted / thirumal

select * into <new table name> from < old tablename> where
<any false condition>
ex: new table name "emp"
Old table name "dept"
select * into emp from dept where 2=5
then it will display only the structure of the old
table,not the data

Is This Answer Correct ?    3 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can 2 queries be executed simultaneously in a distributed database system?

649


What is a .db file?

544


How subquery works in sql?

543


Explain ddl statements in pl/sql?

578


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

531






What is snowflake sql?

582


What are different types of indexes?

512


How can you fetch first 5 characters of the string?

554


Why truncate is faster than delete?

565


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

1712


What is the limitation on the block size of pl/sql?

532


How to add a column ‘salary’ to a table employee_details?

595


How many clustered indexes can be created on a table?

595


what is 'mysqlcheck'? : Sql dba

577


What is duration in sql profiler trace?

557