此选择查询给我我想要修改我想更新表中的多个行,但是如果某个列的值不存在于另一个表中?
Select * From Location
where Location.DeviceAddress not in (Select DeviceAddress From Device) order by DeviceAddress desc
但是列,此更新查询
Update Location
set DeviceAddress = NULL
where Location.DeviceAddress not in (Select DeviceAddress From Device)
使我有以下错误:
子查询返回多个值。当子查询遵循=,!=,<,< =,>,> =或当子查询用作表达式时,这是不允许的。 该声明已被终止。
仅供参考,我使用的是Microsoft Server 2008和一如既往的支持深表感谢