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

What is difference between nchar and nvarchar?

694


In what condition is it good to disable a trigger?

741


Which operator is used in query for pattern matching?

837


what is timestamp in mysql? : Sql dba

742


Can a table contain multiple foreign key’s?

741






What is bulk collect in pl sql?

727


What is input buffer in sql*plus?

825


What is difference between sql function and stored procedure?

680


what is the difference between a having clause and a where clause? : Sql dba

692


Can we rollback delete command?

692


What is the current version of postgresql?

734


What is the command used to fetch first 5 characters of the string?

1093


what is commit? : Sql dba

817


How long it takes to learn pl sql?

723


Which table is left in join?

687