这个select查询给出了我想要修改的列where Location.DeviceAddress not in (Select DeviceAddressFrom Device) order by DeviceAddress descUpdate Location where Location.DeviceAddressnot in (Select DeviceAddress From Device)
我尝试根据比较不同表的时间戳的条件来更新整个列(EquipmentEvents_ID_f)的一部分。如果时间戳相同,则应该将ID从一个表插入到另一个表。但是,我的子查询返回多个值,这是符合逻辑的。但是如何实现减小子查询的…呢?我期待着您的建议!谢谢update [MES].[MAINT].PrioTable_Test_PR] as