what command is used to create a table by copying the
structure of another table?
Answers were Sorted based on User's Feedback
Answer / hokar
SELECT * INTO tabname1 FROM tabname2 WHERE 1=2 (TO copy
only the structure)
Is This Answer Correct ? | 18 Yes | 4 No |
Answer / naik
select * into oldtable from newtable where oldtable
=newtable
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kunal sain
create table table_name
as select * from another_table
where 1>2;
Is This Answer Correct ? | 7 Yes | 9 No |
Answer / narsing
SELECT * INTO tabname1 FROM tabname2 WHERE 1<>2 (TO copy
only the structure)
Is This Answer Correct ? | 0 Yes | 3 No |
what is unique and xaml nonclustered index
How to delete particular value in the column of a table.Is it possible or not?if possible give it as in query.
How many non clustered indexes there can be on table ?
Can we use custom code in ssrs?
Can you explain different types of joins?
What is a view and what are its advantages?
What is the difference between a local and a global variable?
what is package configuration variable?How to change file name in folder dynamically?Plz help me
List all the types of user-defined functions?
Why use cursor in sql server?
What is sql server query analyzer?
What are the events recorded in a transaction log?