pb select imbriqué sous unix
Bonjour,
J'ai un pb avec ce code : il marche bien sur Windows, mais sur Unix j'ai l'erreur comme quoi "formationId" n'est pas un nom de colonne. Ca doit être du au fait que j'utilise un alias dont je m'en sers dans le select imbriqué.
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
$req = "select Formation.id as formationId, Formateur.id as formateurId, Opportunite.id as opportuniteId
from Formation, Formateur, Opportunite where
Formation.idEntreprise=$id_entreprise
and Opportunite.idFormation=Formation.id
and Opportunite.idFormateur=Formateur.id
and dateDebut1=(select min(dateDebut1) from Opportunite where
idFormation=formationId and idFormateur=formateurId
and datediff(dateDebut1, now()) > 0) |
Quelqu'un voit-il la solution ?
Merci