![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Gurus, I am looking for a stored procedure or package to find total number of rows in each table in a schema. Something like, you can pass the schema name ot the SP or may be simple query. Thank you RA |
#3
| |||
| |||
|
|
"janu" <ang... (AT) gmail (DOT) com> a écrit dans le message de news: 1162579697.634588.94... (AT) f16g2000cwb (DOT) googlegroups.com... | Hi Gurus, | | I am looking for a stored procedure or package to find total number of | rows in each table in a schema. | | Something like, you can pass the schema name ot the SP or may be simple | query. | | Thank you | RA | Set heading off Set feedback off Set pagesize 0 Set termout off Set trimout on Set trimspool on Set recsep off Set linesize 100 Column d noprint new_value date_ Spool tmp Select 'Select '''||table_name||' : ''||count(*) from '||owner||'.'||table_name||';', to_char(sysdate, 'YYYYMMDDHH24MISS') d from dba_tables where owner=upper('&1') order by table_name / Spool off Spool count_&1._&date_ @tmp.LST Spool off Regards Michel Cadot |
![]() |
| Thread Tools | |
| Display Modes | |
| |