SQL 获取 Oracle 数据库不同模式中的表名列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8456639/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-01 13:36:22 来源:igfitidea点击:
Get list of table names in different schema of an Oracle database
提问by Flashidkz
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?
但我想跳过“连接”命令。我想从另一个模式运行查询。那有可能吗?
回答by EvilTeach
SELECT TABLE_NAME
FROM ALL_TABLES
WHERE OWNER='OTHER-SCHEMA'