select a.name,b.name from test3 a,test3 b where a.name<>b.name
双循环比赛场数:
select count(*) from test3 a,test3 b where a.name<>b.name
单循环对阵场次:
select a.name,b.name from test3 a,test3 b where a.name
select count(*) from test3 a,test3 b where a.name
表名自己替换一下,我用的test3
欢迎追问