Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / dhiraj kumar

we have to use INSERT INTO method.
with the use of this method we can easily transfer records
from one table to another table but both table should have
similar columns or you need to select same no of columns
and datatype as inserting table

example:table A1 having 2 columns emp_name,emp_address
and A2 having 4 column name,address,city,dept

INSERT INTO A1 select name,address from A2.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the events recorded in a transaction log?

992


Differentiate between a local and a global temporary table?

950


What are the new features of sql server 2008 r2 reporting service?

209


What are different types of raid configurations? : SQL Server Architecture

1067


How do I find my localdb version?

980


Can two tables have the same primary key?

1199


How to drop an existing table?

1000


What is the maximum number of instances in 32 bit and 64 bit sql server 2012?

975


how to determine the service pack currently installed on sql server? : Sql server database administration

957


What happens if date-only values are provided as date and time literals?

1015


What is a DBMS, query, SQL?

1045


What is the difference between the 2 operating modes of database mirroring?

1103


How to convert a unicode strings to non-unicode strings?

1096


What is the temp table?

912


Explain different types of self contained sub query?

1022