![]() |
1
0
我现在没有办法尝试,但我相信你只需要
这里有一些参考资料: https://dev.mysql.com/doc/refman/5.7/en/counting-rows.html https://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html
所以count(*)列将被称为更漂亮的投票 |
![]() |
2
0
由于您希望对每个注册和奖杯配对进行单独计数,请在中同时使用这两列
|
![]() |
3
0
|
![]() |
4
0
你需要根据奖杯和注册进行分组。
|
![]() |
hello_programmers · Mysql从其他表输出一列 1 年前 |
![]() |
Community wiki · 这个MySQL语句出了什么问题? 1 年前 |
![]() |
Community wiki · 优化从同一表中提取的多列的查询 1 年前 |
![]() |
Popo · Sql查询:返回数据库中不可用的where条件 1 年前 |
|
Hamdan Nuramdani · 对账单中一周内不同表中的数据求和 1 年前 |
|
Kugelfisch · 用php为数据库加密数据 1 年前 |