If test in sql??

Поиск
Список
Период
Сортировка
От Esa Pikkarainen
Тема If test in sql??
Дата
Msg-id 67915E45708@ktk.oulu.fi
обсуждение исходный текст
Ответы Re: If test in sql??  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-general
This is maybe a novice question, but after all...
Say, I have a discussion forum application. There is an expiration
value for a whole board; then there are individual values for every
conference. If this individual value is NULL then the general value
should be used. How can I test this situation in a query (to
Postgresql):
I mean something like:

  Select (IF conf.expire NOTNULL conf.expire ELSE gen_expire)
  as expire, ...

Where is this in manuals if it is?

Thanks
Esa

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

Предыдущее
От: Zak McGregor
Дата:
Сообщение: Re: Re: MySQL has transactions
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: [INTERFACES] Can't connect to anonCVS !