问题:查询mysql数据库中hibernate_day3下所有的表名:
解决:
sql语句如下:
select table_name
from information_schema.tables
where table_schema='hibernate_day3' and table_type='base table';
本文介绍了一种查询MySQL数据库中特定模式下所有表名的方法。通过使用SQL语句从information_schema.tables表中筛选出所需的表名。
问题:查询mysql数据库中hibernate_day3下所有的表名:
解决:
sql语句如下:
select table_name
from information_schema.tables
where table_schema='hibernate_day3' and table_type='base table';
4235
2402
3838

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