| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Dynamicaly OCIDefineByPos
Hi
Here's my Problem:
I want to write a c++-class which use
OCI. The problem is that when an other programmer
executes for example TOCI->Query("SELECT * FROM MYTABLE");
my class don't know how many OCIDefineByPos it has to make.
Also it doesn't know from which type the Cols are.
Is there a Type like Variant ?
The programmer should be possible to deside AFTER the Query
which type he want's to use. For Example
TOCI->FieldByName["Name"]->AsString().
or
TOCI->FieldByPos[5]->AsInteger().
But i have no idea how to do that with OCI.
Ciao
Christian Fruth Received on Thu Nov 12 1998 - 09:40:15 CST
![]() |
![]() |