我有2个疑问是这样的:更新一个表依赖于其他表的价值
Select F_Exhibitor,F_Stand from t_order_header where F_Exhibition='10996'
和
select F_ExhibitorCode,F_Stand from T_ExhibitorLocation where F_ExhibitionCode='10996'
我想更新T_order_header
表F_stand与相应F_ExhibitorCode和F_stand名T_ExhibitorLocation
[使用SQL Server从选择更新](可能重复http://stackoverflow.com/questions/2334712/update-from-select-using -sql-server) –
你的命名约定遍布全球,并且没有代码格式。 SQL命令更容易阅读为大写(我不叫喊)对于我来说,SQL中的下划线不起作用,然后在你的问题中你的命名约定又改变了。也许整理一下你的代码可能会帮助你和其他人理解你的问题。 – theWhiteFox