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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: slightly OT: visual c++ and null values

RE: slightly OT: visual c++ and null values

From: Toepke, Kevin M <ktoepke_at_trilegiant.com>
Date: Fri, 19 Oct 2001 06:00:37 -0700
Message-ID: <F001.003AFBD0.20011019055017@fatcity.com>

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 Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Toepke, Kevin M
  INET: ktoepke_at_trilegiant.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: 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 - 08:00:37 CDT

Original text of this message

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