mysql 查询数据库中所有表名称

select table_name 
from information_schema.tables 
where table_schema='数据库名称';

select table_name 
from information_schema.tables 
where table_schema='数据库名称' and table_type = 'BASE TABLE' AND table_schema = DATABASE ();
如果觉得文章不错,可以分享给其他人哟~
原文地址:https://www.cnblogs.com/hany-postq473111315/p/15202610.html