Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question on row locking 1

Status
Not open for further replies.

slok

Programmer
Jul 2, 1999
108
SG
when deleting from a record from a table...

how can I lock it for delete.

I tried something like that..

==
select emp_no from employee where emp_no = '1'
for delete nowait;
==

in SQLPlus, it gives me an error message
===
ERROR at line 1:
ORA-00905: missing keyword
==


What could be wrong?

 
Have you looked at the "lock table" command? Most likely that will do what you want.
 
There no special option for locking to delete:

select emp_no from employee where emp_no = '1'
for update nowait;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top