Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Retreiving Column/Table Names from a Query Using OCI
"Flavius Vespasianus" <nl_at_nl.com> wrote in message
news:VkhU8.712$2k5.300_at_newsread1.prod.itd.earthlink.net...
Then I'm pretty sure that what you want is impossible with this app as well. Unless anyone knows a way of solving this without rewriting the query.
SQL> create table a(col1 number);
Table created.
SQL> create table b(col1 number,col2 number);
Table created.
SQL> insert into a values 1;
insert into a values 1
*
SQL> ed
Wrote file afiedt.buf
1* insert into a values(1)
SQL> /
1 row created.
SQL> insert into b values(1,2);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from a,b where a.col1=b.col1;
COL1 COL1 COL2
---------- ---------- ----------
1 1 2
SQL> insert into b values(1,2);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from a,b where a.col1=b.col1;
COL1 COL1 COL2
---------- ---------- ----------
1 1 2 1 1 2Received on Tue Jul 02 2002 - 16:39:43 CDT
![]() |
![]() |