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

Answer Posted / anksuh

SELECT TOP 0 * INTO employee2 FROM dbo.employeedtls
using this command we can copying the structure of one table

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is coalesce faster than isnull?

701


Explain locks? : Transact sql

738


Can we join two tables without common column?

697


What is a sql statement?

692


what is sp_pkeys? : Transact sql

889






Explain lock escalation? : Transact sql

867


Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql

742


How do I access sql anywhere database?

671


What is rank function in sql?

720


What is package in pl sql with an examples?

728


Explain table and field in sql?

779


Why trigger is used in sql?

690


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2176


What is varchar sql?

811


what are the security recommendations while using mysql? : Sql dba

765