Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: sql --> query for empty column

Re: sql --> query for empty column

From: Robert Prendin <rprendin_at_magi.com>
Date: Sat, 11 Apr 1998 01:31:16 GMT
Message-ID: <352ec97a.726641765@news.istar.ca>


Perhaps the field you think has nothing in it actually contains spaces...

try the following:
select

        decode(substr(column_name,1,1),' ','space!!') from table_name;

good luck

Robert Prendin
crd_at_cs.odu.edu (CRAIG READ DUNCAN) wrote:

>Hi,
>I need to query for an empty column in a certain record.
>The column in question definitly has some empty entries.
>I've tried <''>,<null>,<blanks>, and length(column). All
>come back with no hits.
>
>These records were created with sqlloader, if that has
>anything to do with it. The particlular column either
>had a text string (varchar2) or nothing. What's the trick?
>I suspect this is basic stuff; I'm new at this.
>
>Solaris 2.51
>Oracle 7.3.3
>
>I'd appreciate any help,
>crd
Received on Fri Apr 10 1998 - 20:31:16 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US