简单的单表与多表查询
查询一、同时查询多条数据1、正常查找(麻烦)select * from 表 where 字段=“查找字段”……2、使用in查找(快)使用in( 数据1,数据2,……)判断表中谋一个字段是否在in后面的参数列表中。格式:select * from 表 where 需要查找的字段 in (查找内容,……);select * from 表 where 需要查找的字段 not in(查找内容,……) order by asc;并按升序排序二、分组查找1、使用group by 查找格式:
复制链接