From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrus Moor <nospameetasoftnospam@online.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to make update statement to work
Date: Sun, 27 Mar 2005 02:57:10 -0500
Message-ID: <3550.1111910230@sss.pgh.pa.us> (raw)
In-Reply-To: <d23u8o$228i$1@news.hub.org>
References: <d23u8o$228i$1@news.hub.org>
"Andrus Moor" <nospameetasoftnospam@online.ee> writes:
> UPDATE demo.toode
> SET "liik"=NULL, "grupp"=NULL
> WHERE ("grupp", "liik") NOT IN
> (SELECT ("grupp", "liik") FROM "artliik")
> ERROR: operator does not exist: character = record
> How to write this UPDATE statement properly ?
Hmm ... Postgres wants it without the innermost parentheses:
(SELECT "grupp", "liik" FROM "artliik")
Offhand though I am not certain whether the way you wrote it is supposed
to be allowed according to the SQL spec. Does anyone think this should
have worked, and if so what's the chapter and verse that says so?
regards, tom lane
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: tgl@sss.pgh.pa.us, nospameetasoftnospam@online.ee
Subject: Re: How to make update statement to work
In-Reply-To: <3550.1111910230@sss.pgh.pa.us>
* 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