mysql表的模糊查询

 

查询库下所有的表名

SELECT table_name FROM information_schema.tables WHERE table_schema='库名'

 

 

模糊表名查询

SELECT table_name FROM information_schema.tables WHERE table_schema='库名' AND table_name LIKE '表名前缀%' 

posted @ 2019-04-25 16:02  __Ant  阅读(5762)  评论(0编辑  收藏  举报