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 |
Explain Different types of Projects?
What is identity?
How to insert and update data into a table with "insert" and "update" statements?
What is sql server transaction log file?
Can you explain full-text query in sql server?
what is victor class
Explain microsoft sql server functions?
What types of replication are supported in sql server?
I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?
How to Generate a Series of Random Integers With T-SQL?
What is a field in a table?
When would you use a before or after trigger?