mysql - OrderBy 没有任何反应 mysql

标签 mysql sql-order-by

SELECT *, count(spieler) as 'Anzahl' 

FROM spieler, teilnehmer, durchfuehrung 

WHERE spieler.id = teilnehmer.spieler and teilnehmer.istErschienen = 1 and teilnehmer.durchfuehrung = durchfuehrung.id and durchfuehrung.wurdeUeberprueft = 1  

GROUP BY  teilnehmer.spieler

ORDER BY 'Anzahl' DESC;

ORDER BY 这样是没用的...请帮助我更正此 mysql 查询,以便 Alias Anzahl ist ordered desc...

最佳答案

你应该用这个

   order by  count(spieler)

关于mysql - OrderBy 没有任何反应 mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43181470/

相关文章:

MySQL案例更新中

mysql - 使用多个联接的未知列

mysql - 从两列中查找重复项,但显示所有行 MySQL

sql - CASE inside ORDER BY 多列

php - MySQL 双阶

MySQL 转储和导入不保留编码?

mysql - 从三个表中选择

php - Mysql ORDER BY 数字 DESC

sql - union的顺序是不是都保了

MySQL ORDER BY 十进制值不起作用