Re: [SQL] Update on 6.5

From: José Soares <jose(at)sferacarta(dot)com>
To: chairudin(at)prima(dot)net(dot)id
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Update on 6.5
Date: 1999-04-16 13:28:02
Message-ID: 37173AE2.4FB7C0D5@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Chairudin Sentosa ha scritto:

> Hi,
>
> I am using postgresql 6.5 snapshot.
> I can not update.
> Could anyone tell me what's wrong, please?
>
> update ibs_br_all_total_units tr set first_name=
> (select first_name from ibs_subscriber tn
> where tr.pin = tn.pin
> );
>
> "/tmp/psql.60000.13342" 4 lines, 117 characters
> ERROR: parser: syntax error at or near "tr"
>

AFAIK PostgreSQL doesn't allow subselects on UPDATE.

José

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message José Soares 1999-04-16 14:58:44 Re: [SQL] UPDATE subselect?
Previous Message Chris Bitmead 1999-04-16 13:10:28 UPDATE subselect?