在mysql中有个数据库information_schema下的表tables记录了所有数据库中所有的表相关信息
TABLE_SCHEMA 数据库名称
SELECT COUNT( * ) FROM information_schema.tables WHERE TABLE_SCHEMA = ‘库名‘
原文链接:http://www.cnblogs.com/liuqidongprogram/p/5821162.html
原文:http://www.cnblogs.com/renfanzi/p/7495031.html