查询所有表名:
select t.* from user_tables t;
查询所有字段名:
select t.* from user_col_comments t;
查询所有表的表名和表说明:
select t.table_name,f.comments from user_tables t inner join user_tab_comments f on t.table_name = f.table_name;
查询表的数据条数、表名、中文表名
SELECT a.num_rows,
a.table_name,
b.comments
FROM user_tables a,
user_tab_comments b
WHERE a.table_name = b.table_name
ORDER BY table_name;
本文详细介绍如何使用Oracle SQL查询所有表名、字段名、表说明及数据条数,并提供实际SQL语句,帮助读者掌握数据库查询的基本操作。
2315

被折叠的 条评论
为什么被折叠?



