Re: [SQL] Update on 6.5

From: Chairudin Sentosa <chairudin(at)prima(dot)net(dot)id>
To: José Soares <jose(at)sferacarta(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Update on 6.5
Date: 1999-04-21 08:36:31
Message-ID: 371D8E0F.C2097B01@prima.net.id
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message José Soares 1999-04-21 12:39:45 Re: [SQL] Update on 6.5
Previous Message Ken J. Wright 1999-04-20 19:13:39 Re: [INTERFACES] TUPLES <> HEAP