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 is sub query and its properties?

917


how to trace the traffic hitting a sql server? : Sql server database administration

1770


Explain about Normalization?

1012


What is the log shipping?

952


Where views are stored in sql server?

925


How to create a large table with random data for index testing in ms sql server?

978


What is the beast way to write CTE in SQL Server ?

981


What is change tracking in sql server?

942


Can we delete data from a view?

881


what are user defined datatypes and when you should go for them? : Sql server database administration

961


What is microsoft sql server?

912


Explain multiserver query

961


How to create a user to access a database in ms sql server using "create user" statements?

911


Can you tell me about the concept of ER diagrams?

1018


How to create nested stored procedure?

949