我在MySQL和POSTGRESQL中使用以下查询。
的MySQL SELECT table_name FROM information_schema.tables where table_schema =' SmartHome'和table_name喜欢'%House%'
POSTGRESQL 即可。 SELECT table_name FROM information_schema.tables where table_schema =' public'和table_name喜欢'%House%'。
我想知道 Oracle DB 中的等效查询。
答案 0 :(得分:1)
您可以使用以下sql查询 -
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 */
答案 1 :(得分:0)
从user_tables中选择TABLE_NAME