select t1.table_name, t2.comments, tablespace_name, temporary
from user_tables t1
left join user_tab_comments t2
on t1.table_name = t2.table_name
where t1.table_name like '%tableName%';
(注意 这里的 tableName 为模糊查询的表名,同时注意表名大小写,不然查不到)
示例结果:
select t1.table_name, t2.comments, tablespace_name, temporary
from user_tables t1
left join user_tab_comments t2
on t1.table_name = t2.table_name
where t1.table_name like '%tableName%';
(注意 这里的 tableName 为模糊查询的表名,同时注意表名大小写,不然查不到)
示例结果: