TABLE NAME / JOIN / ATTR_GET / OCI [message #113076] |
Wed, 30 March 2005 18:04 |
laplante
Messages: 3 Registered: March 2005
|
Junior Member |
|
|
When I do a select from two table, can I get the table name
for each column name.
For example:
while (parm_status==OCI_SUCCESS) {
/* Retrieve the column name attribute */
sndb_checkerr(pl, OCIAttrGet((dvoid*) mypard, (ub4)
OCI_DTYPE_PARAM,
(dvoid**) &col_name,(ub4 *
&col_name_len, (ub4) OCI_ATTR_NAME,
(OCIError *) pl -> errhp ));
will retreive the column name but if the 2 tables have the same name, I need to know the name of the table
How do I get the table name for each column if OCI?
|
|
|
|
Re: TABLE NAME / JOIN / ATTR_GET / OCI [message #113083 is a reply to message #113079] |
Wed, 30 March 2005 18:30 |
laplante
Messages: 3 Registered: March 2005
|
Junior Member |
|
|
Interesting point of view. So since Oracle does not return the name of the table user has to adjust and modify his/her SQL request!
This is not a way I like to do my stuff. But its a last solution to my request if I can't find another way.
Thanks.
|
|
|
|