$get_sql = "SELECT sql_calc_found_rows field1,field2 FROM table WHERE name = ‘1‘ order by add_time desc limit 2,20 "; $get_total_sql = "SELECT FOUND_ROWS() as total";
原文地址:https://www.cnblogs.com/handle/p/11977772.html
时间: 2024-10-13 23:17:17
$get_sql = "SELECT sql_calc_found_rows field1,field2 FROM table WHERE name = ‘1‘ order by add_time desc limit 2,20 "; $get_total_sql = "SELECT FOUND_ROWS() as total";
原文地址:https://www.cnblogs.com/handle/p/11977772.html