
如何用Java实现获得MySQL数据库中所有表的记录总数
1个回答
展开全部
使用JDBC连接数据库 ,然后,得到某数据库中所有的表的记录总数:
SELECT SUM(table_rows) FROM information_schema.tables WHERE table_schema='test';
SELECT SUM(table_rows) FROM information_schema.tables WHERE table_schema='test';
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询