Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 table to table insert.

Author  Topic 

oahu9872
Posting Yak Master

112 Posts

Posted - 2006-02-24 : 16:59:07
i have two tables. one is full of data, and one is empty. i want to copy a couple of columns from the full one to the empty one. is there a join statement that will easily do that? thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-02-24 : 17:04:30
No JOINs are needed.

INSERT INTO Table1 (Column1, Column2)
SELECT Colunm1, Column2
FROM Table2
...

Tara Kizer
aka tduggan
Go to Top of Page

oahu9872
Posting Yak Master

112 Posts

Posted - 2006-02-24 : 21:05:49
I'll give it a shot, thanks alot
Go to Top of Page

oahu9872
Posting Yak Master

112 Posts

Posted - 2006-02-27 : 10:53:22
worked great thanks
Go to Top of Page
   

- Advertisement -