You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importcom.alibaba.druid.sql.PagerUtils;
importcom.alibaba.druid.util.JdbcConstants;
Stringsql = "select id, name from t order by id";
Stringresult = PagerUtils.count(sql, JdbcConstants.MYSQL); // 这里的dbType是MySql,可以更换为Oracle、DB2和SQL_Server