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 |
How to access the inserted record of an event?
what is difference between view and Dip.
what is meant by deafult in sql server?
How will you collect the date from current date to last older 6 days date in sql server 2005
How does using a separate hard drive for several database objects improves performance right away?
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
Hi All, I want to display all duplicate records in the table. My query has to fetch all the records which are duplicate(First Name or Last Name). Also I want the ability to also pull names where there might be a middle initial placed in the end of the first name field, (i.e., "Maria Z. " vs. "Maria") as well. Please guide me to find this. Table: ID FirstName LastName 1 Zach H Hoffman 2 Zach Hoffman 3 Troy Hoffman 4 Shawn Livermore 5 Prem S 6 Jony Hoffman H 7 Zach Modan I need the query to filter......... ID FirstName LastName 1 Zach H Hoffman 2 Zach Hoffman 3 Troy Hoffman 6 Jony Hoffman H 7 Zach Modan I hope this example will give you clear idea..... Thanks in Advance Prem
What are various ways to enhance the ssrs report?
How to connect sql server management studio express to sql server 2005 express?
What command do we use to rename a db?
Explain DBMS, RDBMS?
What is INTVAL( )and where we use Plz any body help me
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)