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

What is the difference between drop and truncate commands?

477


what is the use of double ampersand (&&) in sql queries?

616


Write an sql query to select all records from the table?

551


How can a pl sql block be executed?

522


What is sql trigger example?

530






What are the syntax and use of the coalesce function?

545


Do stored procedures prevent sql injection?

538


Does group by remove duplicates?

539


Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

532


What programs use sql?

517


What are the ddl commands?

527


Write a unique difference between a function and a stored procedure.

523


Why function is used in sql?

510


What are the disadvantages of file system?

609


What is #table in sql?

513