pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 ? 





view thread (2+ messages)  latest in thread

Message-ID: <d23u8o$228i$1@news.hub.org>
Permalink:  ../d23u8o$228i$1@news.hub.org/
Also on:    postgresql.org/message-id/d23u8o$228i$1@news.hub.org

 · 

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