How do I query an Oracle database to display the names of all tables in it?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
With any of those, you can select:
Oracle database to display the names of all tables using below query
vist more : http://www.plsqlinformation.com/2016/08/get-list-of-all-tables-in-oracle.html
There exists 3 datadictinary for this
DBA_TABLES describes all relational tables in the database.
Description of relational tables accessible to the user
USER_TABLES describes the relational tables owned by the current user. This view does not display the OWNER column.
We can get all tables including column details from below query:
Try selecting from user_tables which lists the tables owned by the current user.
gives all the tables of all the users only if the user with which you logged in is having the
sysdba
privileges.