Hello tlm!
Je suis sur MySQL.
en fait, j ai une requete qui marche comme ca :
1 2 3 4
| SELECT count( vote.id ) AS nbVote, sujet, dateMAJ, url
FROM forumf
INNER JOIN vote ON forumf.id = vote.id_forumf
GROUP BY vote.id |
mais qui marche pas quand je fait ca :
1 2 3 4 5
| SELECT count( vote.id ) AS nbVote, sujet, dateMAJ, url
FROM forumf
INNER JOIN vote ON forumf.id = vote.id_forumf
ORDER BY count( vote.id ) ASC
GROUP BY vote.id |
j'ai alors une erreur:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY vote.id LIMIT 0, 30' at line 5
merci d'avance les petit loup ! :-p
Partager