Re: [SQL] Update on 6.5 - Mailing list pgsql-sql

From Chairudin Sentosa
Subject Re: [SQL] Update on 6.5
Date
Msg-id 371D8E0F.C2097B01@prima.net.id
Whole thread Raw
In response to [SQL] OUTER JOINS  (Dan Janowski <danj@3skel.com>)
List pgsql-sql
José Soares wrote:

> 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é

Hi Jose,

How should I do it in PostgreSQL?

Thanks

Regards,
Chai



pgsql-sql by date:

Previous
From: JT Kirkpatrick
Date:
Subject: TUPLES <> HEAP
Next
From: José Soares
Date:
Subject: Re: [SQL] Update on 6.5