tags:

views:

833

answers:

3

What object do you query against to select all the table names in a schema in Oracle?

A: 

You may use,

select tabname from tabs

to get the name of tables present in schema.

jatanp
isn't that sqlserver?
Tony BenBrahim
tabs is deprecated in Oracle, and it's tabs.table_name
WW
+1  A: 

you're looking for:

select table_name from user_tables;
diciu
+5  A: 

To see all the tables you have access to

select table_name from all_tables where owner='<SCHEMA>';

To select all tables for the current logged in schema (eg, your tables)

select table_name from user_tables;
Matthew Watson