获取mysql下所有表

select table_name from information_schema.TABLES where TABLE_SCEMA='db_name';

infromation_schema是数据库系统用来保存数据表的总表

猜你喜欢

转载自blog.csdn.net/sxf_123456/article/details/82846750