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

Home -> Community -> Usenet -> c.d.o.server -> Re: all table names with row counts?

Re: all table names with row counts?

From: Vadim Tropasko <vtropash_at_us.oracle.com>
Date: Wed, 27 Jan 1999 12:17:14 -0800
Message-ID: <36AF744A.D8E82310@us.oracle.com>


Thank for your input, I've got the idea.

You probably made a typo, since I dont see 'all_tables' anywhere.

P.S. This is not pure sql solution, anyway. (I switched to SQL Navigator from
archaic SQL*Plus long time ago).

"Christopher M. Day" wrote:

> Vadim,
>
> The following should help (although I would prefer a PL/SQL solution)
>
> From SQL*Plus
>
> spool table_count.sql
> select 'select count(*) '||table_name||' from '||table_name||';'
> spool off
> @table_count.sql
>
> Chris
>
> Vadim Tropasko wrote:
> >
> > I want to perform query like this
> >
> > select table_name, (select count(*) from table_name) from all_tables
> >
> > but cannot fugure out how to build join correctly. Any ideas?
> >
> > No procedural solution, please.
Received on Wed Jan 27 1999 - 14:17:14 CST

Original text of this message

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