2 questions. - Mailing list pgsql-sql

From Colin Dick
Subject 2 questions.
Date
Msg-id Pine.LNX.3.96.980922095650.17825A-100000@ocis.ocis.net
Whole thread Raw
Responses Re: [SQL] 2 questions.  (Chris Johnson <cmj@inline-design.com>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [SQL] How to Make Case InSensitive???
Next
From: Colin Dick
Date:
Subject: Question re: null