update problem

Поиск
Список
Период
Сортировка
От Sudharshan Reddy
Тема update problem
Дата
Msg-id 200209091355.35282.Sudharshan.Gundlapalle@mcs.vuw.ac.nz
обсуждение исходный текст
Ответы Re: update problem  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-novice
How can I update several columns in one UPDATE query ?
The users's guide says:
UPDATE table SET col = expression [, ...]
    [ FROM fromlist ]
    [ WHERE condition ]

CREATE TABLE time(
orderdate date,
day char(10),
month char(10),
year integer
);

UPDATE timed SET month='january' where month='1' and set month='feb' where month = '2';
ERROR:  parser: parse error at or near "month"

thanks
sudharshan

--
Sudharshan Reddy G
Masters of Computer Science,
Victoria University Of Willington,
Willington-6004
NewZealand

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

Предыдущее
От: "torres monta±es manuel eduardo"
Дата:
Сообщение: Kdevelop and libpq++
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: update problem