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

What is the difference between cube operator and rollup operator? : SQL Server Architecture

612


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

552


How to get the query of a table in sql server?

494


What is meant by referential integrity?

581


What are different types of replication in sql server?

566






What is the difference between a stored procedure and a user defined function?

534


Tell me what do you mean by an execution plan? Why is it used? How would you view it?

519


Is the log file is a part of file group?

542


What is isnull() operator?

563


how do you test proper tcp/ip configuration windows machine? : Sql server database administration

513


What is the boxing and unboxing concept in .net?

538


what is the difference between count(*) and count(1) ?

621


What are triggers in ms sql server?

595


How do I clean up sql server transaction log?

560


Explain about system stored procedure?

588