database - Counting no. of records from multiple tables; Oracle DB -



database - Counting no. of records from multiple tables; Oracle DB -

i know need utilize query list of tables schema: select table_name all_tables owner='schema'

i know next query counts record in table: select count(*) schema.table

there 2400+ tables in schema. question how count number of records tables using 1 step?

the table all_tables contains column num_rows. (you can description of table next sql statement: describe all_tables;)

the next statement shows number of records every table:

select table_name, num_rows all_tables owner='schema';

to number of records in tables of schema, use:

select sum(num_rows) all_tables owner='schema';

database oracle

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -