Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: print table name and the number of rows in it

Re: print table name and the number of rows in it

From: <joel-garry_at_home.com>
Date: 8 Dec 2005 16:47:53 -0800
Message-ID: <1134089273.422081.239540@o13g2000cwo.googlegroups.com>


set head off
set verify off
set termout off
set echo off
set lines 200
spool all_tables.sql
select 'select '''||table_name||''', count(*) from '||table_name||';' from user_
tables
/
spool off
set termout on
@all_tables

give me money

jg

--

@home.com is bogus.
"That would be a tough roach to hoe." - PGN http://news.bbc.co.uk/2/hi/technology/4500482.stm
Received on Thu Dec 08 2005 - 18:47:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US