查询时跳过多个字段重复的数据

来源:互联网 发布:北京赛车推算软件 编辑:程序博客网 时间:2024/04/28 21:19

select *, count(distinct Victory,Flat,Negative) from sporttery group by Victory,Flat,Negative;

// 更简单的一种
select * from sporttery group by Victory,Flat,Negative;

// 和where嵌套
select * from pinnacle where MatchName=? and HomeTeam=? and AwayTeam=?  group by Victory,Flat,Negative;
0 0