1

I am using the following query in MySQL and POSTGRESQL.

MySQL SELECT table_name FROM information_schema.tables where table_schema='SmartHome' and table_name like '%House%'

POSTGRESQL. SELECT table_name FROM information_schema.tables where table_schema='public' and table_name like '%House%'.

I want to know equivalent query in Oracle DB.

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

1

You can use the below sql queries for the same -

select * from user_tables; /* The relational tables owned by the current user.*/

select * from dba_tables;  /* describes all relational tables in the database - For this you need to login as a DBA */

select * from tab; /* Gives you all tables */

select * from cat; /* Gives you sequences as well */
Prashanth kumar
  • 949
  • 3
  • 10
  • 32
0

select TABLE_NAME from user_tables

The beginner
  • 624
  • 4
  • 17