在数据库执行
SELECT COUNT(1) as cnt FROM user
cnt = 955
Sql countSQL = Sqls.fetchInt("SELECT COUNT(1) as cnt FROM user
");
nutDao.execute(countSQL);
int a = countSQL.getInt(); // a = 897
结果明显不一样啊 这是怎么回事
在数据库执行
SELECT COUNT(1) as cnt FROM user
cnt = 955
Sql countSQL = Sqls.fetchInt("SELECT COUNT(1) as cnt FROM user
");
nutDao.execute(countSQL);
int a = countSQL.getInt(); // a = 897
结果明显不一样啊 这是怎么回事