Erreur dans le syntaxe sql
Bonjour,
J'ai la requête HQL suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| select distinct cand
from Candidate cand
left join fetch cand.contactByPersonalContactId as PC
left join fetch cand.rhscreensForCandidateId as rhScreen
left join fetch cand.spokenlanguages as spokenlanguages
left join cand.personnelSkillnames as S0
where S0.name = 'J2EE'
and cand.firstName like 'kmiha%'
and cand.status = 'Salarié'
and (cand.isDeleted =false)
and (PC.isDeleted = false or PC = null)
order by cand.lastName ASC; |
Cette requête me retourne l'erreur suivante :
Citation:
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 'fetch cand.contactByPersonalContactId as PC left join fetch cand.rhscreensForCa' at line 1
mysql>
Merci de m'aider à résoudre cette erreur.
Je suis prêt à répondre à vos questions.
Amicalement
jockhip12