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

Home -> Community -> Usenet -> c.d.o.server -> OCI array of strings bind

OCI array of strings bind

From: Simeon Bailey <s.bailey_at_astracon.com.au>
Date: Tue, 30 Mar 1999 11:26:23 +0800
Message-ID: <3700445F.F435B475@astracon.com.au>


Hi,

    I'm attempting to bind an array of strings of variable length.

text *textval = "Entry1Entry2"

ub2 alen[2];
alen[0] = 6;
alen[1] = 6;

status = OCIBindByPos (stmtp, &bindpp, errpp, 1, textval, 6,

    SQL_CHR, inds, alen, 0, 0, 0, OCI_DEFAULT);

This works fine, however when I try to insert two strings of different lengths things go awry.

Is it possible bind an array of variable length strings, or do they have to fixed length padded with spaces?

Thanks S. Received on Mon Mar 29 1999 - 21:26:23 CST

Original text of this message

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