LLblGen 3.0 Rel Dec 3
Oracle 9i/10g
Is there way to execute the syntax "Select For Update" in queries ?
Let me explain my scenario so that you may even suggest other way other than "Select for Update"
I have only table BILLCOUNTER
Columns
BILLCOUTER_ID [PK]
BILLNUMBER
Now, When a person is making invoice, what I am doing is
SELECT * FROM BILLCOUNTER
UPDATE BILLNUMBER = BILLNUMBER+1
output of BILLNUMBER+1, I am storing in variable since I have to pass the same to other tables.
Now the problem is when two users execute at same time they get same bill number.** I cant apply expression in predicates in this case because if I do so, I get the BILLNUMBER only at commit.**