----------------------------------------同时查询多条记录----------------------------------------
获取id=1 或者 id=2 或者id=4
in(数据1,数据2..):判断表中某一个字段是否在in后面的参数列表之中
select * from 表名 where 列名id in(1,2,4);
select * from 表名 where 列名id not in (2,3) order by 列名 asc;
----------------------------------------分组查询(group by)----------------------------------------
如果一个查询语句中使用了group by, 则后面的条件需要使用having 关键字 不能使用while;
----------------------------------------分页(limit 起始下标, 每页显示的数据量)----------------------------------------
0是下标 3是一页多少条
原文:https://www.cnblogs.com/xiaocaonb/p/12917860.html