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

Answer Posted / gali kondareddy

INSERT INTO TABLE_2 SELECT * FROM TABLE_1


OR


INSERT INTO TABLE_2 SELECT * FROM TABLE_1 WHERE 1=1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are various ways to enhance the ssrs report?

572


What you can do to delete a table without the delete trigger firing?

522


What is difference between drop truncate and delete?

555


How to provide values to stored procedure parameters in ms sql server?

534


How you can get the list of largest tables in a database?

529






How would you use user_constraints table in DB?

592


what is the difference between Tabular and Matrix report?

124


What is the tcp/ip port on which sql server runs?

570


1.what is the diff between nolock optimizer and read uncommitted isolation? 2.what is the diff between revoke and deny? 3.what is percieved down time? 4.whether password protection are required for backups?if yes why?if no why? 5.what is fill factor? 6.what is cost analysis? 7.what is mean by piece meal restore? 8.what is 'rowguidcol'? 9.impersonate permission? 10.what is selectivity?

1629


John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?

533


What is Extended user-defined?

536


What is difference between clustered index and non clustered index?

628


What are actions, how many types of actions are there, explain with example? : sql server analysis services, ssas

545


How can we solve concurrency problems?

570


What does it mean to manipulate data?

565