Re: "select ..... for update of ..." doesn't support

From: Matt Miller <mattm(at)epx(dot)com>
To: Vlad <marchenko(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: "select ..... for update of ..." doesn't support
Date: 2005-09-06 18:29:32
Message-ID: 1126031372.3076.23.camel@dbamm01-linux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2005-09-06 at 13:45 -0400, Vlad wrote:
> SELECT * FROM one.aa, two.bb WHERE one.aa.a = two.bb.b FOR UPDATE OF
> one.aa;
>
> ERROR: syntax error at or near "." at character 73 (points to the
> last instance of "one.aa" in SQL query

Try using a table alias, and reference that alias in the "for update of"
clause.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vlad 2005-09-06 18:33:16 Re: "select ..... for update of ..." doesn't support full qualified table name?
Previous Message Michal Hlavac 2005-09-06 18:11:47 Re: tsearch2 & unicode