Number of data records for all tables in the Oracle statistics database SQL

Source: Internet
Author: User

1. Query table name:

SELECT table_name from User_all_tables;

2. Assemble statistical SQL statements:

1 >select ' SELECT ' | | table_name | | ' As TableName, COUNT (*) from ' | | table_name | | ‘ ; ' As Exectutesql from User_all_tables;

2> select ' Select ' | | table_name | | ' As TableName, COUNT (*) from ' | | table_name | | ' Union ' as exectutesql from User_all_tables;

3. Copy the assembled Exectutesql execution

select * from ( 第二步2> 执行的结果复制到这里 删除最后一个 union  )  执行

4. Look at the results of the query.

Number of data records for all tables in the Oracle statistics database SQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.