Conversion from Sybase ASA

Поиск
Список
Период
Сортировка
От Richard Sydney-Smith
Тема Conversion from Sybase ASA
Дата
Msg-id 001001c376a0$ee48a8d0$f06832d2@athlon2000
обсуждение исходный текст
Ответы Re: Conversion from Sybase ASA
Список pgsql-sql
In sybase I can use the following syntax:
 

select 'T' as src,(if tbon is null or tbon < '1900/12/12' or tbon > '1900/9/30' then 'U' else 'P' endif) as pres from ftrans

this returns two columns: src = 'T' and pres which has either the value 'U' or 'P'

how would I express this in postgresql?

thanks

Richard

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

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: undefine currval()
Следующее
От: "Viorel Dragomir"
Дата:
Сообщение: Re: Conversion from Sybase ASA