Re: [SQL] Locking row

2006-03-10 Thread Michael Fuhr
On Fri, Mar 10, 2006 at 02:57:51PM -0600, Larry Rosenman wrote: > Flavio Suguimoto wrote: > > I need to mark a row with a value in a column, but first i need to > > select the first row without this mark. But in some concurrents cases > > i mark the row twice. How can i lock the row to avoid others

Re: [SQL] Locking row

2006-03-10 Thread Larry Rosenman
Flavio Suguimoto wrote: > Hi all, > > I need to mark a row with a value in a column, but first i need to > select the first row without this mark. But in some concurrents cases > i mark the row twice. How can i lock the row to avoid others session > get it? > > TABLE TICKET > TICKET_NUMBER | MAR

[SQL] Locking row

2006-03-10 Thread Flavio Suguimoto
Hi all, I need to mark a row with a value in a column, but first i need to select the first row without this mark. But in some concurrents cases i mark the row twice. How can i lock the row to avoid others session get it? TABLE TICKET TICKET_NUMBER | MARK 1 |1 2 |0