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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

appending data

Status
Not open for further replies.

Alira

Programmer
Mar 21, 2001
77
CA
Hi All!

What would be the best way for "removing from table1 - appedning to table2" couple of thousand records at a time?

Have a great day!:)
 
Assuming the table structures are the same.

insert into table2
select * from table1

You can add field lists if needed as well as a where clause on the select.

Deletes are just

delete from table1 where (enter your where clause here)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top