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

Answer Posted / hokar

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

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most common type of join?

726


What is the difference between cube operator and rollup operator? : SQL Server Architecture

817


Difference between group by clause and having clause in SQL?

740


Distinguish between nested subquery and correlated subquery?

751


What is data source in connection string?

643






What are the different types of replication are there in sql server 2000?

760


How to assign null values to variables or columns?

712


How to specify the collation for a character data type in ms sql server?

740


sql database suspect We have a sql database that is showing as suspect. How can we recover?

1569


What is an etl file?

699


What is index in an assignment?

695


What is an indice?

763


Why use “nolock” in sql server?

722


Why use stored procedures in sql server?

710


what is package and it uses and how can u call a package

1774