Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying data from one table to another

Status
Not open for further replies.

sndkick

Programmer
Nov 1, 2000
71
US
I have a table containing multiple fields and i need to copy all data from 2 of the fields into another table that i just created. What's the best way to do this?

Any help would be much appreciated. Scott
 
NEVERMIND... this was simple, i figured it out.

INSERT INTO dbo.tablename (val1, val2)
SELECT oldVAl1, oldVAl2
FROM oldTable
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top