2 questions.

Поиск
Список
Период
Сортировка
От Colin Dick
Тема 2 questions.
Дата
Msg-id Pine.LNX.3.96.980922095650.17825A-100000@ocis.ocis.net
обсуждение исходный текст
Ответы Re: [SQL] 2 questions.  (Chris Johnson <cmj@inline-design.com>)
Список pgsql-sql
Is there a strlen function in sql?

Can you do a multiple comparison on the same field.  I would like to be
able to find entries that have either a null entry or a blank entry as a
boolean result and sort by the boolean result.

(ie: select field='' or field is null as x from table order by x;)

The above statement core dumps.  The current solution is to:

update table set field='' where field is null;

before running the query.  There must be a better way?  Ideas?

Thadvancenks!!!!

--
Colin Dick
On Call Internet Services
cdick@mail.ocis.net



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] How to Make Case InSensitive???
Следующее
От: Colin Dick
Дата:
Сообщение: Question re: null