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

Where cross join is used?

911


What are the characteristics of modern DBMS?

1040


What are “lock” hints?

1008


How do I make a resultset scrollable?

918


What are the different types of collation sensitivity?

1063


What are the different SQL Server Versions you have worked on?

957


What do mean by xml datatype?

1019


How to end a stored procedure properly in ms sql server?

1026


Can you tell me about the concept of ER diagrams?

1024


What is compound operators?

982


What is difference between Datepart() and Datename() in SqlServer?

1166


What do you mean by acid?

947


How would you go about developing a ssrs report?

162


What is the usage of the sign function?

1013


Some queries related to SQL

941