From: | Colin Dick <cdick(at)mail(dot)ocis(dot)net> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | 2 questions. |
Date: | 1998-09-22 17:01:30 |
Message-ID: | Pine.LNX.3.96.980922095650.17825A-100000@ocis.ocis.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers 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(at)mail(dot)ocis(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Colin Dick | 1998-09-22 17:37:13 | Question re: null |
Previous Message | Bruce Momjian | 1998-09-22 16:51:38 | Re: [HACKERS] regress[ion].* files? |
From | Date | Subject | |
---|---|---|---|
Next Message | Colin Dick | 1998-09-22 17:37:13 | Question re: null |
Previous Message | Bruce Momjian | 1998-09-22 16:47:49 | Re: [SQL] How to Make Case InSensitive??? |