SUM和GROUP BY不起作用

时间:2017-06-22 13:40:33

标签: php mysql group-by sum

我在请求中遇到了担心,它无法正常运行。 你能帮帮我吗?

$ref_je = $pdo->query("SELECT SUM(Winner) AS Winn, SUM(Participation) AS Part, Reponse FROM tb_jeu_jeudi_reponses WHERE Pseudo='".$Pseudo."' GROUP BY Reponse");
while($data_je = $ref_je->fetch(PDO::FETCH_ASSOC)){
$Jeu_W = number_format($data_je["Winn"], 0, ',', ' ');
$Jeu_P = number_format($data_je["Part"], 0, ',', ' ');
}

GROUP BY实际上并不起作用。 你有什么想法吗?

0 个答案:

没有答案