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)
 ask about

Author  Topic 

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2003-08-13 : 07:14:20
i have two tables(table a and table b)
how to updating some records in table a if the record source
in table b with sql syntax:


oh

Amethystium
Aged Yak Warrior

701 Posts

Posted - 2003-08-13 : 07:42:42
I am not quite sure what you mean here.
Maybe something like this :


UPDATE tablea
SET someColumn = b.SomeValue,
anotherColumn = b.anotherValue
FROM tableb AS b
WHERE tablea.someID = b.SomeID



------------------------------------------------------------------------------
I enjoy using SQL Server but I am not part of the Microsoft fanboy club! NEVER!!
Go to Top of Page
   

- Advertisement -