日期:2014-05-16  浏览次数:20694 次

mysql 中如何找出 表名符合某些条件 的所有表
如题 类似于oracle中的 select table_name from user_tables u where u.TABLE_NAME not like 'JBPM%' and u.TABLE_NAME not like 'JER%' 就是找出库中所有名字不已JBPM和JER开始的表 
做一个查询界面,不希望将系统表显示出来。

------解决方案--------------------
SQL code
Select TABLE_NAME
From INFORMATION_SCHEMA.TABLES
Where TABLE_NAME not like 'JBPM%' 
and TABLE_NAME not like 'JER%'  
and TABLE_SCHEMA='db1'