Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はOracle8iPL /SQLを初めて使用します。PL/SQLの簡単な更新を手伝ってください。T-SQLには精通していますが、PL/SQLでは混乱しています。
Update a SET a.column = null FROM table1 a INNER JOIN table2 b ON a.fields1=b.fields1 WHERE a.fields3=[criteria]
どんな助けもいただければ幸いです、
Rgds Affan
Oracle は、結合構文を使用した更新をサポートしていません。しかし、あなたは次のようにそれを行うことができます:
update table1 a set field1 = null where field3 = [criteria] and exists (select 1 from table2 where field1 = a.field1)