From: Andrus Moor <nospameetasoftnospam@online.ee>
To: pgsql-sql@postgresql.org
Subject: How to make update statement to work
Date: Sat, 26 Mar 2005 17:13:19 +0200
Message-ID: <d23u8o$228i$1@news.hub.org> (raw)
I want to nullify fields which does not exist in reference table.
I tried
UPDATE demo.toode
SET "liik"=NULL, "grupp"=NULL
WHERE ("grupp", "liik") NOT IN
(SELECT ("grupp", "liik") FROM "artliik")
but this causes error:
ERROR: operator does not exist: character = record
HINT: No operator matches the given name and argument type(s). You may need
to add explicit type casts.
How to write this UPDATE statement properly ?
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: nospameetasoftnospam@online.ee
Subject: Re: How to make update statement to work
In-Reply-To: <d23u8o$228i$1@news.hub.org>
* 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