help lock record

From: bitrunner <bitrunner(at)katamail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: help lock record
Date: 2006-05-23 17:37:02
Message-ID: 4473483E.9090202@katamail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

For lock the record I use:
select * from orders where id = 17 for update

in this way lock the record with id = 17.
If an other user demands the same record as I can understand that it is
lock?

Thanks a lot.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Glenn Holmer 2006-05-23 18:28:10 Re: DatabaseMetaData
Previous Message Oliver Jowett 2006-05-23 13:50:17 Re: DatabaseMetaData