Oracle queries the names and data of all data tables with IDs greater than 10000

Source: Internet
Author: User

SQL code used to query the names and data of tables with IDs greater than 10000 in Oracle -- query the data with IDs greater than 10000 in all tables and the corresponding table name select 'select id, ''' | table_name | ''' as tablename from '| table_name | 'where id> = 10000 unival' from user_tables; www.2cto.com SQL code -- The result is as follows: select id, 'auth _ member_role' as tablename from AUTH_MEMBER_ROLE where id> = 10000 union select id, 'auth _ organization' as tablename from AUTH_ORGANIZATION where id> = 10000 union select id, 'auth _ permission' as tablename from AUTH_PERMISSION where id> = 10000 union select id, 'auth _ product' as tablename from AUTH_PRODUCT where id> = 10000 union select id, 'auth _ PRODUCT_ABOUT 'as tablename from AUTH_PRODUCT_ABOUT where id> = 10000 union select id, 'auth _ role' as tablename from AUTH_ROLE where id> = 10000 union select id, 'auth _ user' as tablename from AUTH_USER where id> = 10000 union .........

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.