Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to handle insert and update on same record before transaction commited

411499Apr 21 2004 — edited Apr 23 2004
hi all.

in oracle store procedure, may i execute a update sql statement after insert statement(the transaction be uncommitted) on same table and same record, like follow:

insert stmt:insert test(a,b,c) value (1,2,3);

update stmt:update test set b = 3 where a= 1;

but the update statement is invalid , and has it errow ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2004
Added on Apr 21 2004
6 comments
3,197 views