mysql 查询库中有几张表

SELECT COUNT(*) TABLES, table_schema
FROM information_schema.TABLES
WHERE table_schema = '999*999'

99999是 库名

猜你喜欢

转载自www.cnblogs.com/whm-blog/p/10444497.html