この選択クエリは、私がテーブル内の複数の行を更新したいのですが、特定の列の値が別のテーブルに存在しない場合は、
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)
は私に次のエラーを与える:
サブクエリは複数の値を返しました。 =、!=、<、< =、>、> =、またはサブクエリが式として使用されている場合は、これは許可されません。 ステートメントが終了しました。あなたのサブクエリの代わりに1つだけ値を返します。この場合には
Update Location set DeviceAddress = NULL where Location.DeviceAddress not in (Select
top 1 DeviceAddress From Device where Device.DeviceAddress == Location.DeviceAddress)
をしようとする場合があります、私はいつものように、支援がずっと