mysql数据库中查询特定数据库下所有的表名

问题:查询mysql数据库中hibernate_day3下所有的表名:

解决:

sql语句如下:

select table_name

from information_schema.tables

where table_schema='hibernate_day3' and table_type='base table';


猜你喜欢

转载自blog.csdn.net/py_tamir/article/details/80247695
今日推荐