select case problem

Поиск
Список
Период
Сортировка
От Joseph Syjuco
Тема select case problem
Дата
Msg-id 1032903934.28249.2.camel@Falcon
обсуждение исходный текст
Ответы Re: select case problem
Список pgsql-sql
i have a table with the fields empno (not null) and division_no (null
allowed) what i wanted to do is to do a select case statement such that
when division_no is null itll output 'No division' if its not null itll
output 'with division' unfortunately this statement doesnt work ... i
need help on the correct syntax

select case division_no when null then 'no division' else 'with
division' end from employee;





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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: arrays (was untitled)
Следующее
От: "Matteo Beccati"
Дата:
Сообщение: Re: select case problem