1、查符合条件的数据总条数
select COUNT(1)
 fromwhere 条件
  • 1.
  • 2.
  • 3.
  • 4.
2、分页sql
select * fromwhere 条件 order by 排序条件 limit m, n;
  • 1.

 

作者:꧁执笔小白꧂