par
bothcry » 29 juin 2005, 15:14
hello ! j'ai un ti probleme avec une requete / sous requete
Erreur
Code : Tout sélectionner
requête SQL :
SELECT count( * )
FROM stat_animateur.stanim_2005_06
WHERE stat_animateur.stanim_2005_06.id_animateur
IN (
SELECT smschat.animateurs.id
FROM smschat.animateurs
WHERE zone = 1
)
MySQL a répondu:
#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 'SELECT smschat.animateurs.id
FROM smschat.animateurs
WHERE zone
testées dans phpmyadmin chacune de leur coté, les requtes fonctionnent.
mises ensemble, erreur...
hello ! j'ai un ti probleme avec une requete / sous requete
Erreur
[code]requête SQL :
SELECT count( * )
FROM stat_animateur.stanim_2005_06
WHERE stat_animateur.stanim_2005_06.id_animateur
IN (
SELECT smschat.animateurs.id
FROM smschat.animateurs
WHERE zone = 1
)
MySQL a répondu:
#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 'SELECT smschat.animateurs.id
FROM smschat.animateurs
WHERE zone[/code]
testées dans phpmyadmin chacune de leur coté, les requtes fonctionnent.
mises ensemble, erreur...