pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Manfred Koizar <mkoi-pg@aon.at>
To: Andreas Pflug <Andreas.Pflug@web.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: UPDATE FROM portability
Date: Wed, 26 Mar 2003 19:16:49 +0100
Message-ID: <8cr38v8fndks17i5d19vr4joe257v480jb@4ax.com> (raw)
In-Reply-To: <3E7F1695.5050101@web.de>
References: <3E7F1695.5050101@web.de>

On Mon, 24 Mar 2003 15:30:45 +0100, Andreas Pflug
<Andreas.Pflug@web.de> wrote:
>Updating some rows in tab1 with corresponding values from tab2, pgsql style:
>UPDATE tab1
>          SET value=T2.VALUE
>     FROM tab2 T2
>  WHERE T2.restr=1
>        AND tab1.key=T2.key

AFAIK this should work with MSSQL7.  Assuming you didn't name your
columns value and key ...

Servus
 Manfred




view thread (4+ messages)  latest in thread

Message-ID: <8cr38v8fndks17i5d19vr4joe257v480jb@4ax.com>
Permalink:  ../8cr38v8fndks17i5d19vr4joe257v480jb@4ax.com/
Also on:    postgresql.org/message-id/8cr38v8fndks17i5d19vr4joe257v480jb@4ax.com

 · 

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: mkoi-pg@aon.at, Andreas.Pflug@web.de
  Subject: Re: UPDATE FROM portability
  In-Reply-To: <8cr38v8fndks17i5d19vr4joe257v480jb@4ax.com>

* 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