Oracle statements used to query all tables of a user

Source: Internet
Author: User
The following statements are used to query all your tables in Oracle. If you are interested in oracle queries, take a look. Select * fromall_tab_commen

The following statements are used to query all your tables in Oracle. If you are interested in oracle queries, take a look. Select * from all_tab_commen

The following statements are used to query all your tables in Oracle. If you are interested in oracle queries, take a look.

Select * from all_tab_comments
-- Query tables and views of all users

Select * from user_tab_comments
-- Query the user's tables and views

Select * from all_col_comments
-- Query the column names and comments of all user tables.

Select * from user_col_comments
-- Query the column name and comment of the user's table

Select * from all_tab_columns
-- Query the column names and other information of all user tables (detailed but no remarks ).

Select * from user_tab_columns
-- Query the column name and other information of the user's table (detailed but no remarks ).

-- Generally, 1 is used:
Select t. table_name, t. comments from user_tab_comments t

-- Generally 2 is used:
Select r1, r2, r3, r5
From (select a. table_name r1, a. column_name r2, a. comments r3
From user_col_comments ),
(Select t. table_name r4, t. comments r5 from user_tab_comments t)
Where r4 = r1

The preceding statements are used to query all tables of an oracle database.

,

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.