This can be done with a single statement and some XML magic:
select table_name,
to_number(extractvalue(xmltype(dbms_xmlgen.getxml('select count(*) c from '||owner||'.'||table_name)),'/ROWSET/ROW/C')) as count
from all_tables
where owner="FOOBAR"
More Related Contents:
- What is the replacement of cursor foreach in oracle pl/sql?
- Can you SELECT everything, but 1 or 2 fields, without writer’s cramp?
- PL/SQL, how to escape single quote in a string?
- Oracle PL/SQL – Raise User-Defined Exception With Custom SQLERRM
- Passing an array of data as an input parameter to an Oracle procedure
- Get resultset from oracle stored procedure
- Oracle PL/SQL – How to create a simple array variable?
- ways to avoid global temp tables in oracle
- Split function in oracle to comma separated values with automatic sequence
- ORA-06508: PL/SQL: could not find program unit being called
- Number of rows affected by an UPDATE in PL/SQL
- PL/SQL print out ref cursor returned by a stored procedure
- How to return a resultset / cursor from a Oracle PL/SQL anonymous block that executes Dynamic SQL?
- Create Pivot view in SQL from a SQL table
- How to send email using Oracle 10 g Forms
- Why doesn’t PL/SQL respect privileges granted by Roles?
- Can We use threading in PL/SQL?
- Why cannot I use bind variables in DDL/SCL statements in dynamic SQL?
- Oracle: how to INSERT if a row doesn’t exist
- What is the algorithm used by the ORA_HASH function?
- How to output result of SELECT statement which is executed using native dynamic SQL?
- passing in table name as plsql parameter
- Reading clob line by line with pl\sql
- Cursor For Loop with dynamic SQL-Statement
- How to use parameters in a ‘where value in…’ clause?
- Why cannot I create triggers on objects owned by SYS?
- No more data to read from socket
- automating rollback script oracle
- How do I get column datatype in Oracle with PL-SQL with low privileges?
- Escaping single quote in PLSQL