From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | "GIROIRE, Nicolas (COFRAMI)" <nicolas(dot)giroire(at)airbus(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: "returning" in postgresql request |
Date: | 2005-06-09 14:57:00 |
Message-ID: | 42A858BC.7000706@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
GIROIRE, Nicolas (COFRAMI) wrote:
> Hi,
>
> I try to deploy an Application with Oracle Database to a solution
> with postgresql. the Oracle system exists and we use a request which
> return an int in a variable nb by "returning nb_lock into nb"
>
> UPDATE xdb_ancestors_lock SET nb_lock=nb_lock+1 WHERE doc_id=? AND
> ele_id=? returning nb_lock INTO nb;
>
> I'd like to know if there is equivalent solution under postgresql or
> if i'm obliged to do a select before my update.
I think something similar has been discussed, but there's nothing like
it at the moment. You'll have to SELECT FOR UPDATE; UPDATE
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Rodrigo Katsumoto Sakai | 2005-06-09 15:06:08 | Starting PostgreSQL on WinXP is not working |
Previous Message | Alvaro Herrera | 2005-06-09 14:54:21 | Re: deadlocks in multiple-triggers environment |