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: OCI - How do I retrieve result columns from a 'SELECT * FROM MYTABLE' statement

Re: OCI - How do I retrieve result columns from a 'SELECT * FROM MYTABLE' statement

From: Thomas Olszewicki <ThomasO_at_cpas.com>
Date: Wed, 19 Jan 2000 20:37:07 GMT
Message-ID: <Tfph4.7231$632.352670@news1.rdc2.on.home.com>


Sebastian,
Look at ...\OCI\SAMPLES\CDEMODSA.C
This example uses function OCIDescribeAny() and OCIAttrGet() to describe table and columns.
find function :
static void describe_table ()

HTH Thomas

"Sebastian Corbay" <scorbay_at_netsize.com> wrote in message news:388604BB.1641C6CE_at_netsize.com...
>
> I use OCI to get rows from a table on Oracle 8.
> I successfully, connect to the server, prepare the statement, execute
> this statement, but...
>
> I don't know how to get the results.
>
> The problem is that I cannot set local variables (with OCIDefineByPos)
> to retrieve value through an OCIFetch, because I do not
> know how many columns are returned and the type of these columns.
> I read the Oracle Call Interface Programmer's Guide, but I did not find
> anyway how to get information about the results returned.
>
> What am I supposed to do?
>
> Thank in advance for your help!
>
Received on Wed Jan 19 2000 - 14:37:07 CST

Original text of this message

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