sql mysql group by使用

来源:互联网 发布:谷歌聊天软件 编辑:程序博客网 时间:2024/05/14 20:56

查询组合一个字段

select FAccountDate, count(1) from mydb.mytable where FGood = 1 group by FaccountDate;


查询组合两个字段

select FAccountDate, FType, count(1) from mydb.mytable where FGood = 1 group by FaccountDate, FType;


0 0
原创粉丝点击