SQL Question

Поиск
Список
Период
Сортировка
От Matthew
Тема SQL Question
Дата
Msg-id 183FA749499ED311B6550000F87E206C1FD049@srv.ctlno.com
обсуждение исходный текст
Ответы Re: SQL Question
Список pgsql-general
I'm trying to do some type of conditional select statement and I have no
idea how.

What I would like is something like this (using pseudo sql)

select (if(col1>1) true else if (col1<= 1) false) from foo;

does that make sense?  Basically I want one column of my result set to be
true or false based on some logic.  I can do it in code and have my program
handle it, but I was hoping to do it in SQL.

Thanks,

Matt O'Connor

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

Предыдущее
От: "Brian C. Doyle"
Дата:
Сообщение: Win32 Postgresql
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: Update through views?