This view (and all others starting with dba_) are meant for database administrators. If you want to list all tables in the Oracle database, you can query the dba_tables view. You can add a WHERE clause for the owner field to filter on the owner. This may show you a lot of results, including a lot of system tables. You can add the owner column to your view to see who owns the table: SELECT table_name, owner To see all tables that the current user can access, you can query the all_tables view. It doesn’t include tables owned by other users that the current user can see. This only shows tables owned by the current user. To see tables owned by the currently logged-in user, you can query the user_tables view. You might not have the privileges to view each of these views, so if one query doesn’t work, try another one. You can query any of these views to list all tables in Oracle. Oracle has several different built-in views that you can query to find the data you need. Let’s take a look at a few ways in each database.
![sql tabs select all from databsae sql tabs select all from databsae](https://www.simego.com/content/images/data-sync-sql-server-select-table.png)
Sometimes there is a command, others have a SELECT query from the data dictionary.
![sql tabs select all from databsae sql tabs select all from databsae](http://i.stack.imgur.com/BNVoZ.png)
#Sql tabs select all from databsae how to#
If you’ve forgotten the name of a specific table, or forgotten how to spell a table (was it plural or singular? One word or two with an underscore?), then you can use these queries to show all tables in your database.Įach database vendor has a different way of showing tables. This could be to help with testing, to see what tables exist before you create a table or remove one, or some other reason. Sometimes you need to get a list of tables from your database. Learn how to do this in several different database vendors in this guide. Do you need to get a list of all the tables in your SQL database?