How to a Query to copy data from on table to another table.

Answer Posted / rajdeep gupta

Hi there is a question copy only schema without data from
one table to another

INSERT INTO A1 select name,address from A2 WHERE 1 = 2

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of sql server replication? : sql server replication

617


What is filtered index?

645


What are the types of database recovery models?

593


How to change the data type of an existing column with "alter table" statements in ms sql server?

525


Does view occupy space?

507






Do you know what is lock escalation?

574


what are the reporting service components in SSRS?

118


What is db stored procedure?

460


how to restart sql server in single user mode? How to start sql server in minimal configuration mode? : Sql server database administration

454


Why do we use sql limitations? Which constraints can we use while making a database in sql?

555


Why I can not enter 0.001 second in date and time literals in ms sql server?

531


you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation

530


What is a covered index?

513


What triggers long term care?

552


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

538