number of rows in all tables in a schema... [message #249720] |
Thu, 05 July 2007 11:50 |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
Hi,
What is the query to find out the number of rows in all tables in a schema?
select count(*), table_name
from all_tables
where owner = 'OWNER_NAME'
group by table_name; ????????????????????
|
|
|
|
Re: number of rows in all tables in a schema... [message #249723 is a reply to message #249720] |
Thu, 05 July 2007 11:58 |
shaseeb
Messages: 113 Registered: April 2007 Location: Madison, WI
|
Senior Member |
|
|
this query is not giving me the correct result user_tables or all_tables. I need to see how many rows are in each table. I know it is a very basic query but it has slipped from my mind. I could use OEM but the darn thing gives me the wrong number of rows.
select count(*), table_name
from all_tables
group by table_name;
COUNT(*) TABLE_NAME
---------- ------------------------------
1 ANALYSIS_CATEGORY
1 ANALYSIS_CHART
1 ANALYSIS_CHART_OLD
1 ANALYSIS_REPORT
1 ANSWER
1 APP_MENU
1 APP_MENU_PAGE
1 APP_MENU_ROLE
1 APP_PAGE
1 AUDIT_ACTIONS
1 AUDIT_TRAIL
1 AUTH_LEVEL
1 AW$AWCREATE
1 AW$AWCREATE10G
1 AW$AWMD
1 AW$AWREPORT
1 AW$AWXML
1 AW$EXPRESS
1 CERTIFICATION_METHOD
1 COMPANY
1 CONTACT
1 CONTACT_ALIAS
1 CONTACT_ANSWER
1 CONTACT_EMAIL
1 CONTACT_LOGIN
1 CONTACT_ROLE
1 CONTACT_TEST
...
.
[Updated on: Thu, 05 July 2007 12:00] Report message to a moderator
|
|
|
|
|
|
|
|
|