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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C Problem with Oracle!

Re: Pro*C Problem with Oracle!

From: Markus Schöpflin <schoepflin_at_ginit.de>
Date: 1997/10/27
Message-ID: <3454634C.6B53AA58@ginit.de>#1/1

Steven wrote:
> EXEC SQL BEGIN DECLARE SECTION;
> char some_data[11]; /* array size is actual field len + 1 */
> char some_more[21]; /* array size is actual field len + 1*/
> EXEC SQL END DECLARE SECTION;
Try inserting:
  EXEC SQL VAR some_data IS STRING(10);
  EXEC SQL VAR some_more IS STRING(20);

> /*ignore dbkey*/
> strcpy(some_data,dbdata->data[0]);
> strcpy(some_more,dbdata->data[1]);
 

-- 
Markus Schoepflin                         www:   http://www.ginit.de
GINIT Gesellschaft fuer integrierte       email: schoepflin_at_ginit.de
Informationssysteme mbH                   phone: +49 721 9 66 81 67
Vincenz-Priessnitz-Str. 1                 fax:   +49 721 9 66 81 11
D-76131 Karlsruhe, Germany
Received on Mon Oct 27 1997 - 00:00:00 CST

Original text of this message

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