Lock table statement [message #81818] |
Mon, 24 March 2003 17:04  |
LALA
Messages: 18 Registered: August 2002
|
Junior Member |
|
|
Anyone here can help how to use the Lock table statement. how it works, kindly give me some sample codes. thanks
|
|
|
Re: Lock table statement [message #81821 is a reply to message #81818] |
Mon, 24 March 2003 23:34   |
waris
Messages: 115 Registered: November 2001
|
Senior Member |
|
|
Hi,
For example if u wanna lock a row in a student table..
select rollid into x from student
where rollid=99
for update of rollid;
Here the row with rollid of 99 will be locked..
and this lock will be released after commiting or rollback or exiting
out of session..
Hope this helps!!!
Cheers
waris
|
|
|
|