Locking row

Поиск
Список
Период
Сортировка
От Flavio Suguimoto
Тема Locking row
Дата
Msg-id GFEGIFLJJCMGLBLAHILKEEDECGAA.flavio.suguimoto@pragyatechnologies.com
обсуждение исходный текст
Ответ на Re: How can I selet rows which have 2 columns values cross equal?  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Locking row  ("Larry Rosenman" <ler@lerctr.org>)
Список pgsql-sql
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       00001 |    1       00002 |    0

I need to select the first row with 0 in MARK column and then mark it with
1.

regards,
Flavio Suguimoto



В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: How can I selet rows which have 2 columns values cross equal?
Следующее
От: "Larry Rosenman"
Дата:
Сообщение: Re: Locking row