Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: slightly OT: visual c++ and null values
"I forget the values for the indicator variables, but that is in the PRO*C manual."
I think the values are 0 & 1 (false & true). At least they are in Cobol.
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Friday, October 19, 2001 9:50 AM
To: Multiple recipients of list ORACLE-L
Maria:
The developers need to read the PRO*C manual. What the developers need to do is to use indicator variable. These are varaiables that indicate whether the variable is NULL (or if the value was truncated when selected into).
Here is a short example.
char v_first_name[18];
short v_first_name_ind;
SELECT first_name
INTO v_first_name:v_first_name_ind
FROM emp
WHERE emplid = :v_emplid:v_emplid_ind;
I forget the values for the indicator variables, but that is in the PRO*C manual.
HTH
Kevin
-----Original Message-----
Sent: Friday, October 19, 2001 9:00 AM
To: Multiple recipients of list ORACLE-L
hello!
our developers here are requesting that I put defaults (' ' for
chars/varchars, 0 for numbers, etc) in place instead of nulls in all
columns that would supposedly allow null values...
they are using visual c++ and they say that they cannot make visual c++
retreive null values...
i am very hesitant in implementing this...
i have no knowledge whatsoever of visual c++ and don't know if this is
true...
i'd like to know if anyone had encountered this same problem before? or maybe someone can tell me if there is any truth to what our developers are saying...
oracle817 on solaris7
thanks =)
--
Maria Aurora VT de la Vega (OCP)
Database Specialist
Philippine Stock Exchange, Inc.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Maria Aurora VT de la Vega
INET: mtdelavega_at_pse.org.ph
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Liststo: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Oct 19 2001 - 09:12:20 CDT
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |