Skip to Main Content

SQL & PL/SQL

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!

Rowcount in dynamic sql

user2309906Sep 25 2014 — edited Sep 26 2014

Hi ,

I have a dynamic sql with runtime number of columns in SELECT clause

eg. SELECT || col_list ...FROM ..

Now when i execute this i dont get the correct SQL%ROWCOUNT ....Since the column list is undecided, cant create a cursor variable to FETCH the values and capture %FOUND...

Any help ..???

PS:  The above query will return a single row only (SINGLE SELECT) , as this might be helpful

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 24 2014
Added on Sep 25 2014
9 comments
3,744 views