How to make update statement to work

Поиск
Список
Период
Сортировка
От Andrus Moor
Тема How to make update statement to work
Дата
Msg-id d23u8o$228i$1@news.hub.org
обсуждение исходный текст
Ответы Re: How to make update statement to work  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 ? 




В списке pgsql-sql по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Foreign key
Следующее
От: Kalyani Chennupati
Дата:
Сообщение: Is there a way to find a schema name