Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to find the tablename an
Dynamic SQL is again one of the options .
With NATIVE DYNAMIC SQL , the syntaxes are very much simplified , if you are using 8i .
Define a pl/sql table , in which each row contain a varchar2 field for tablename and an integer field for the rowcount .
Build a ref cursor with all table names in that .
Loop thru the cursor and populate the pl/sql table with table and count .
![]() |
![]() |