Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C Problem with Oracle!
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, GermanyReceived on Mon Oct 27 1997 - 00:00:00 CST