1.查询所有表名(table_name):
select a.table_name from user_tables a;
2.查询所有字段名(column_name):
select b.column_name from user_col_comments b;
3.查询指定表(XZ_TEST)的所有字段名(column_name):
select c.column_name from user_col_comments c
where c.table_name = 'XZ_TEST';
其中‘XZ_TEST’为你需要查询指定表的名称
4.查询所有表的表名(table_name)和表说明(comments):
select t.table_name, from user_tables t
inner join user_tab_comments t2
on t.table_name = ;
5.查询模糊表的表名(%XZ_TE%):
select t.table_name from user_tables t
where t.table_name like '%XZ_TE%';
6.查询模糊表的表名(%XZ_TE%)和表说明(comments):
select t.table_name,y.comments from user_tables t
inner join user_tab_comments y
on t.table_name = y.table_name
where t.table_name like '%XZ_TE%';
尽我之力,帮助需要的同学。