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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Zero lenght identifier............

Re: Zero lenght identifier............

From: <xmark.powell_at_eds.com.x>
Date: 3 May 2001 14:31:37 GMT
Message-ID: <9crq49$b73$1@news.netmar.com>

In article <9cr9fd$7q7$1_at_reader1.imaginet.fr>, dbl <homer.simpson_at_mailbox.as> writes:
>Hello!
>I'm trying to add a test in my PL/SQL script, like this :
>
>if '&5' = ''
>then .....................
>
>or :
>value := '&5'
>
>if value = ''
>then ..........
>
>BUT : no way.............. i'm actually unable to pass through this 'IF'
>...........
>
>As I'm not a PL/SQL expert, does anyone have an idea ???????
>
>
>Thanks a Lot :-)
>

Since null is the absence or an unknown value then logically nothing can ever test equal to it!

v_variale := &var;
if v_variable is null then ....

Pl/sql is sloppy and lets you get away with the syntax but in the manual Oracle warns you not to code if var = null type statements. We have more than a few of these to contend with outselves.

Received on Thu May 03 2001 - 09:31:37 CDT

Original text of this message

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