SQL - List the tables in a database

November 2017

Displaying the list of tables present in an Oracle database is quite easy to do.

If you'd like to do so but aren't sure how, look no further than this tutorial. See below for the necessary steps.

Display the List of Tables in an Oracle Database

The command that you should use to list the tables in an Oracle database depends on what information you're looking to isolate.

To list all the tables related the current user, enter
SELECT table_name FROM user_tables; 
.

To list the tables accessible by the user, key in
SELECT table_name FROM all_tables; 
.


To list all of the tables (ADMIN), enter
SELECT table_name FROM dba_tables;
.

Image: © Deymos.HR - Shutterstock.com
Published by aakai1056. Latest update on November 19, 2017 at 12:15 PM by owilson.
This document, titled "SQL - List the tables in a database," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).