mysql-connector-J各版本 SQL_CALC_FOUND_ROWS found_rows() bug探究
朋友们先回答两个问题:selectSQL_CALC_FOUND_ROWS*fromproductwhere1=1 orderbypidasclimit0,15selectfound_rows()asct在mysql5命令行里面执行这两句,ok不ok?ok Java代码: stmt=conn.createStatement(); rs=stmt.executeQuery(sql);