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)
 Update statement for multiple table-a query

Author  Topic 

sm-sql
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,
WB06Work_demand1011,WB1011SummaryMust,WBDrought_Proofing,WBexp_amount1011
WBFlood_control,WBMaterial_Master,WBOtherWorks, WBPan_account1011
WBPan_trans1011,WBRC_Stretch_details,WBrecieve_blk1011,WBimpl_account1011
WBrecieve_pan1011,WBRural_Connectivity,WBWater_conservation, WBWork_detail
WBWork_Material,WBWork_Sanction,work_category,work_present_status,
work_proposed_status,work_status,Work_type,wrk_act_master
set updateflag=NULL where updateflag='Y' or updateflag='y'

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

tkizer
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
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -