From: "Keith Jamieson" <jamiesonk@phoenix.ie>
Subject: Re: Dynamic SQL in PRO-C (type 3), problem with NULL
Date: 2000/04/04
Message-ID: <8ccouq$h70$1@kermit.esat.net>#1/1
References: <38E49951.D6D2CB0A@aleniasystems.finmeccanica.it>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
X-Complaints-To: abuse@esat.net
X-Trace: kermit.esat.net 954853146 17632 193.120.136.67 (4 Apr 2000 12:59:06 GMT)
Organization: Esat Net 	
NNTP-Posting-Date: 4 Apr 2000 12:59:06 GMT
Newsgroups: comp.databases.oracle.server,comp.databases.oracle.tools,cern.oracle.cde,comp.databases.oracle.misc


What you shoud do is actually declare a variable as short int.

your select then looks something like follows:

exec select  column_name into column_value:null_ind;

Now if you retrieve a select, null_ind is set to -1.
This is the correct way to code for Nulls using PRO*C.

Riccardo D.S. wrote in message
<38E49951.D6D2CB0A@aleniasystems.finmeccanica.it>...
>I use e dynamic SQL statment (pro c - type 3 ) to estract
>the value of single column and put it in the host-variable.
>When the return of query is Null the SQL statment  go in error .
>Is it possible when this occur continue the process?
>Now use the NVL function to return a particulat string
>or number when the value is NULL. I prefer ignore the select
>when tha value is Null and continue to other select.
>
>Thanks,
>Sorry for my english...
>
>I'm italian
>
>Dott. Riccardo Di Stefano
>Alenia Marconi System s.p.a.
>Rome - Italy
>




