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: <> '' in PL/SQL

Re: <> '' in PL/SQL

From: RedRiver <instruct_at_zaz.com.br>
Date: Tue, 14 Sep 1999 19:05:56 -0300
Message-ID: <7rmgcq$o30$1@srv4-poa.zaz.com.br>

Gennaro Napolitano <Gennaro.Napolitano_at_italdata.it> wrote:

> Hy Norris
>
> Try putting a space between the ''.
> Instead of :
> if abc <> '' then
> Use:
> if abc <> ' ' then
>
> Hope this helps
>
> Ciao Gennaro
>
> Norris wrote:
>
> > I am writing some simple PL/SQL , but I cannot intepret the result:
> >
> > set serveroutput on
> > declare
> > abc varchar2(1);
> > begin
> > abc := 'a';
> > if abc <> '' then
> > dbms_output.put_line(abc||' <> empty');
> > else
> > dbms_output.put_line(abc||' = empty');
> > end if;
> > end;
> >
> > The Result
> > ----------
> > ServerOutput ON
> > Statement processed.
> > a = empty
> >
> > --
> > - Have several nice days...
> > - Opinions are mine and do not necessarily reflect those of the Corp.
> > http://www.ntfaq.com
> > http://www.cyberport.com/~tangent/programming/winsock/
>

Hi,

You can try IS NULL or IS NOT NULL instead.

Hope that helps and let me know.

npaim_at_zaz.com.br Received on Tue Sep 14 1999 - 17:05:56 CDT

Original text of this message

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