Re: How to make update statement to work

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to make update statement to work
Дата
Msg-id 3550.1111910230@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to make update statement to work  ("Andrus Moor" <nospameetasoftnospam@online.ee>)
Список pgsql-sql
"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


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Foreign key
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: select a list of schema names