Re: Using SELECT WHERE

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Using SELECT WHERE
Дата
Msg-id 20040420095740.P27700@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Using SELECT WHERE  (Michal Lijowski <michal@cvu.wustl.edu>)
Список pgsql-novice
On Thu, 15 Apr 2004, Michal Lijowski wrote:

> I made a database and I would like to select entries
> which have data not equal to the specified date.
> I have postgresql-7.3.4-11  on Red Hat Fedora Core 1.
>
> Here is the command
>
> RabStudies=> SELECT RabNo, ImplantDate, Comments    FROM RabStudiesInfo
> where  implantdate <> 0001-01-01;

You forgot to quote the date, what you're getting is
Date <> Integer (1-1-1).


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Start with -i
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: question on forced-killing the postmaster