摘要:
同时查询多条记录 获取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) o 阅读全文
摘要:
聚合函数 去重: distinct(); 在mysql中函数使用select关键字调用: select 函数名(字段名) from 表名' 找出最大值: max (字段名): select max(列名) as 别名 from 表名; 找出最小值: min (字段名): select min(列名) 阅读全文