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 -> Dynamicaly OCIDefineByPos

Dynamicaly OCIDefineByPos

From: Christian Fruth <fruth_at_she.de>
Date: Thu, 12 Nov 1998 16:40:15 +0100
Message-ID: <72evgs$r5j@linde.she.de>


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

Original text of this message

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