update emp2 t2
set t2.ename = 'Name'
where 1 = 1
and rowid = (select rowid
from emp2 t
where empno = 23);
Allerdings ist diese Art des Updates nicht sehr effizient.
https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:53140678334596
http://www.java2s.com/Tutorial/Oracle/0040__Query-Select/UnderstandingRowIdentifiersrowid.htm
http://psoug.org/definition/ROWID.htm
http://www.orafaq.com/wiki/ROWID
Keine Kommentare:
Kommentar veröffentlichen