Re: update from another table - Mailing list pgsql-sql

From JWR
Subject Re: update from another table
Date
Msg-id 9g3a6s$o6q$1@news.tht.net
Whole thread Raw
List 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@terra.es> wrote in message
news:9fq8eq$1cpd$1@news.tht.net...
> 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
>
>
>




pgsql-sql by date:

Previous
From: "fabrizio"
Date:
Subject: which sql syntax is better for joins on pgsql?
Next
From: Gerald Gutierrez
Date:
Subject: Getting row with id=max(id)