Re: update from another table

From: "JWR" <readlist(at)zdnetonebox(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: update from another table
Date: 2001-06-11 20:37:42
Message-ID: 9g3a6s$o6q$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

That doesn't tend to work in any SQL database I've ever used, though I'm
told Informix can do something similiar.

You need to insert the data into a temp table then delete the rows in the
base table, then insert back from the temp table. Yeah it is a pain.

John

"ivan" <IVANCCC(at)terra(dot)es> wrote in message
news:9fq8eq$1cpd$1(at)news(dot)tht(dot)net(dot)(dot)(dot)
> dear sir,
>
> i would like to know how can i update a table with columns from another
> table and adding a new column with a secuence,
>
> i have try
>
> update table
> set column = (select column from table2), ......, set column=secuence..
>
> is it right?????
>
> thanks
>
> ivan
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message will trillich 2001-06-11 22:37:33 Re: ORDER BY what?
Previous Message Josh Berkus 2001-06-11 19:09:41 Re: Table design issue....