当前位置:网站首页>Oracle和mysql批量查询用户下所有表名和表名注释

Oracle和mysql批量查询用户下所有表名和表名注释

2022-04-23 06:04:00 旺财2

Oracle下查询:

SELECT table_name 表名,table_comment 表说明 FROM information_schema.TABLES WHERE
table_schema = '用户名'
ORDER BY table_name desc

MySQL下查询:

select table_name,comments from user_tab_comments order by table_name desc

版权声明
本文为[旺财2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wdyliuxingfeiyang/article/details/123690818