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 the native system stored procedure to execute a command against all databases?
Is it possible to replicate data from sql server to oracle? : sql server replication
Wht is SQL Injection Attack ?
What are the types of dml?
Does sql server 2000 full-text search support clustering?
How many types of relations are there between dimension and measure group? : sql server analysis services, ssas
What is repeatable read?
What are the different sql server versions?
Do you know what are various aggregate functions that are available?
How do I change my passwords (database, LDAP, and so on) without causing an outage?
is it possible to use a variable in a query with the IN clause (a,b,c..z), without getting quotes or conversion errors?
What is stored procedure in SQL..??
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)