日期:2014-05-18 浏览次数:20880 次
UPDATE The_Match_Data_OldBusToNewBus_by_Labels_shiyan SET The_Match_Data_OldBusToNewBus_by_Labels_shiyan['Bus']=(SELECT The_Match_Data_OldBusToNewBus_guize['New BusName'],The_Match_Data_OldBusToNewBus_guize['NEW Label'] FROM The_Match_Data_OldBusToNewBus_guize),The_Match_Data_OldBusToNewBus_by_Labels_shiyan['Labe']=(SELECT The_Match_Data_OldBusToNewBus_guize['NEW Label'] FROM The_Match_Data_OldBusToNewBus_guize)
------解决方案--------------------
看看你查的那个表里需要更新的数据存在么?
------解决方案--------------------
T-SQL update的语法是这样的
update tableName set 字段一=新的字段值,字段二=新的字段值,字段三=新的字段值..... where 字段N=新的字段值