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: Gennaro Napolitano <Gennaro.Napolitano_at_italdata.it>
Date: Tue, 14 Sep 1999 14:46:10 +0200
Message-ID: <37DE4391.D28B7AB0@italdata.it>


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/
Received on Tue Sep 14 1999 - 07:46:10 CDT

Original text of this message

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