テーブルのフィールドを更新する必要があります。次のクエリを使用しています。助けて、どっちが正しい?
update table1
set col1=<value>,col2=<value>....
from table1 t,table2 s
where t.id=s.num
and s.code='abc';
また
update table1
set col1=<value>,col2=<value>....
where table1.id=table2.num
and table2.code='abc';
どちらが正しいですか?それとも両方とも間違っていますか?何かいい方法を教えてください...