Please start any new threads on our new site at 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)
 Update statement for multiple table-a query

Author  Topic 

Starting Member

1 Post

Posted - 2010-06-06 : 12:17:00
Hello everybody!
Can anyone suggest a script for this update statement where I intend to update one
particular col using 30 tables at one go.
update BackupDetails, Material_Master, WB06Material_purchased1011,
WB06Musterrollmaster1011, WB06MustRoll1011,WB06Registration,WB06Work_demand0607,
WBFlood_control,WBMaterial_Master,WBOtherWorks, WBPan_account1011
WBrecieve_pan1011,WBRural_Connectivity,WBWater_conservation, WBWork_detail
set updateflag=NULL where updateflag='Y' or updateflag='y'

I am using sql servr 2k with ems sql manager.
Urgent solution is highly welcome.

Almighty SQL Goddess

38200 Posts

Posted - 2010-06-06 : 12:42:06
You'll need to write 30 update statements.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page

- Advertisement -