Re: immediate if function

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: immediate if function
Дата
Msg-id 1044590926.28519.36.camel@tokyo
обсуждение исходный текст
Ответ на immediate if function  (<terry@ashtonwoodshomes.com>)
Список pgsql-general
On Thu, 2003-02-06 at 22:55, terry@ashtonwoodshomes.com wrote:
> I have a date field, and if the status is X then I want to return the date,
> otherwise I want to return a null.  Any ideas?

CASE should work:

http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-conditional.html

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC




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

Предыдущее
От:
Дата:
Сообщение: immediate if function
Следующее
От: Chris Johnson
Дата:
Сообщение: Re: FreeBSD: SMP and PostgreSQL