Oracle delete skip locked -
does oracle allows delete rows table condition , skip locked once
delete t t.id in (select id t id in ('1','2') update skip locked )
for example id 2 locked other session , deletion script should skip row
the query above fails error
ora-00907: missing right parenthesis
version : oracle 11g xe
following on jeffrey's answer, believe clause intended use in pl/sql blocks. try this, example:
begin r in (select rowid rid t update skip locked) loop delete t rowid = r.rid; end loop; end; /
Comments
Post a Comment