Re, merci de votre aide.
Si je fais
SELECT idbbir_commerces as id, com_type as type, com_prix as prix, com_contexte as contexte, GROUP_CONCAT (bbir_activite) as activite FROM bbir_commerces JOIN bbir_c_activites_exercees ON fk_id_commerce = idbbir_commerces JOIN bbir_activite ON idbbir_activite = c_fk_id_activite ORDER BY com_creation DESC
j'obtiens :
#1370 - execute command denied to user ... for routine GROUP CONCAT (dans PMA)
Si je fais :
SELECT idbbir_commerces as id, com_type as type, com_prix as prix, com_contexte as contexte, CONCAT(bbir_activite) as activite FROM bbir_commerces JOIN bbir_c_activites_exercees ON fk_id_commerce = idbbir_commerces JOIN bbir_activite ON idbbir_activite = c_fk_id_activite GROUP BY id ORDER BY com_creation DESC
je n'obtiens que l'activité 1
ou je n'ai pas compris ta solution ?
Partager