Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of table names in different schema of an Oracle database [duplicate]

Tags:

sql

oracle

Possible Duplicate:
Oracle: get list of all tables?
How do I list all tables in a schema in Oracle SQL?

I want to list all table in another schema.

connect hr/hr; 
select table_name from user_tables;

but I want to skip the "connect" command. I want to run query from another schema. Is that possible to do?

like image 966
Flashidkz Avatar asked Dec 10 '11 12:12

Flashidkz


1 Answers

SELECT TABLE_NAME 
FROM ALL_TABLES 
WHERE OWNER='OTHER-SCHEMA'
like image 183
EvilTeach Avatar answered Sep 17 '22 14:09

EvilTeach