How to make update statement to work

From: "Andrus Moor" <nospameetasoftnospam(at)online(dot)ee>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to make update statement to work
Date: 2005-03-26 15:13:19
Message-ID: d23u8o$228i$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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 ?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-03-27 07:26:07 Re: Auto Numbering
Previous Message Andrus Moor 2005-03-25 19:50:18 select a list of schema names