pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JWR <readlist@zdnetonebox.com>
To: pgsql-sql@postgresql.org
Subject: Re: update from another table
Date: Mon, 11 Jun 2001 15:37:42 -0500
Message-ID: <9g3a6s$o6q$1@news.tht.net> (raw)
References: <9fq8eq$1cpd$1@news.tht.net>

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





view thread (3+ messages)  latest in thread

Message-ID: <9g3a6s$o6q$1@news.tht.net>
Permalink:  ../9g3a6s$o6q$1@news.tht.net/
Also on:    postgresql.org/message-id/9g3a6s$o6q$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: readlist@zdnetonebox.com
  Subject: Re: update from another table
  In-Reply-To: <9g3a6s$o6q$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox