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
 Transact-SQL (2000)
 updating records in a table from fields of another table

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-08-20 : 09:02:26
Jake writes "I have a table_A that has thousands of records, and i need to update all the records in table_B with data from table_A. table_A and table_B should be joined on one field.

I have done something similar before when i had to insert instead of update, and all i had to do was:

insert mytable ( fields ) select myfields from ...

I was wondering if their was an update equivalent.
Or is my alternative to use a loop...and remove records from a temporary table?

thanks,
jake

SQL Server 2000"

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2002-08-20 : 09:13:06
Hi Jake

Take a look at this

www.sqlteam.com/item.asp?itemid=3876

it should help you.

Damian
Go to Top of Page
   

- Advertisement -