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: set arraysize in Pro*C

Re: set arraysize in Pro*C

From: Tim Gorman <Tim_at_SageLogix.com>
Date: Mon, 18 Nov 2002 09:43:47 -0800
Message-ID: <F001.00505BEC.20021118094347@fatcity.com>


It is implicitly declared by the smallest array used in the EXEC SQL statement. Thus, in the EXEC SQL DECLARE section of the PRO*C program, if one array were declared with 100 elements and another with 50 elements and both were used in the same EXEC SQL statement, then PRO*C would perform array operations of 50. If a scalar variable (i.e. non array) were also used in the same EXEC SQL statement, then PRO*C would automatically adjust to one-row-at-a-time, in order to accomodate the scalar variable.

PRO*C has been doing this since v1.x in the 1980s.

Dear List-Members,

Some of the batch queries can be improved by increasing the arraysize to 1000 ( the default in SQL*Plus is 15); I would like to find out the equivalent of this in Pro*C programs.

Thanks,
Govind

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
  INET: Govind.Arumugam_at_alltel.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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: Tim Gorman INET: Tim_at_SageLogix.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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 Mon Nov 18 2002 - 11:43:47 CST

Original text of this message

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