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 -> Retreiving Column/Table Names from a Query Using OCI

Retreiving Column/Table Names from a Query Using OCI

From: Flavius Vespasianus <nl_at_nl.com>
Date: Mon, 01 Jul 2002 22:14:25 GMT
Message-ID: <5v4U8.8193$FG5.661667@newsread2.prod.itd.earthlink.net>


I have an application that I am trying to switch from "BDE to ODBC to oracle" to OCI directly.

The problem I have having is that the application uses dynamic queries.

If I have a query like

SELECT * from A, B WHERE A.X = B.X

I need to know in the result set which columns come from A and which come from B. Unfortunately, when I use the examples in the OCI manual, only the column name gets returns.

How can I get the table name for a column in a result set? Received on Mon Jul 01 2002 - 17:14:25 CDT

Original text of this message

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