List Available Tables in a Schema

Your rating: None Average: 5 (1 vote)

Very straight forward query to list all available tables under a specific schema. Our schema name in this example is going to be 'HR'.

SELECT table_name
FROM all_tables
WHERE owner = 'HR';

Results:

TABLE_NAME                    
------------------------------
REGIONS                        
LOCATIONS                      
DEPARTMENTS                    
JOBS                          
EMPLOYEES                      
JOB_HISTORY                    
COUNTRIES                      

7 rows selected

Please try to help out with unanswered topics on the forum. Chances are you have had the same issue/question some time in your IT career!

Comments

Have a question? Please ask it on the forum instead.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
9 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Unanswered Forum Posts