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

Answers were Sorted based on User's Feedback



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

Answer / hokar

SELECT * INTO tabname1 FROM tabname2 WHERE 1=2 (TO copy
only the structure)

Is This Answer Correct ?    18 Yes 4 No

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

Answer / pradip jain

SELECT * INTO tblNew FROM tblOld WHERE 1=2

Is This Answer Correct ?    7 Yes 0 No

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

Answer / kumar.t

Select * into newnew1 from newnew WHere 1=2

Is This Answer Correct ?    4 Yes 0 No

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

Answer / jaydev

SELECT TOP 0* INTO tabname2 FROM tabname1

Is This Answer Correct ?    5 Yes 3 No

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

Answer / naik

select * into oldtable from newtable where oldtable
=newtable

Is This Answer Correct ?    2 Yes 1 No

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

Answer / kunal sain

create table table_name
as select * from another_table
where 1>2;

Is This Answer Correct ?    7 Yes 9 No

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

Answer / narsing

SELECT * INTO tabname1 FROM tabname2 WHERE 1<>2 (TO copy
only the structure)

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SQL Server Interview Questions

Explain Different types of Projects?

1 Answers  


What is identity?

0 Answers  


How to insert and update data into a table with "insert" and "update" statements?

0 Answers  


What is sql server transaction log file?

0 Answers  


Can you explain full-text query in sql server?

0 Answers  






what is victor class

0 Answers  


Explain microsoft sql server functions?

0 Answers  


What types of replication are supported in sql server?

0 Answers  


I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?

3 Answers  


How to Generate a Series of Random Integers With T-SQL?

1 Answers  


What is a field in a table?

0 Answers  


When would you use a before or after trigger?

0 Answers  


Categories