Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OCI/Pro*C : How to Find out Column Names Used in Where Condition

70811Apr 10 2002
Hi this seems to be a brainer. Is there an easier way in Pro*C or OCI to find out which columns have been used in the 'Where' condition in a given SQL statement? Eg if we have a statement like 'select empno from emp where desig=:InDEsig'. We can find out bind variable name(InDEsig) and select-list column (empno) easily by describing the statement. But how can we determine the column 'desig' has been used in the where condition? In complex statement, there can be even more columns. One rather labourious way is to dissect the statement by parsing it on ':' and then figure out what the column name is(a terrible C or C++ exercise!!). I am trying to do this, if I will come up with some hints I will post it, in the meantime any hints from any hard working souls?? Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2002
Added on Apr 10 2002
5 comments
424 views