par
su4p » 15 nov. 2010, 13:21
Je ne comprends pas ta réponse...
Mais si je fais :
SELECT DISTINCT o1.ouv_id, o1.ouv_titre, o1.ouv_photoLien, o1.ouv_resume, o1.ouv_annee, o1.ouv_volume, o1.ouv_page, the_libelle, edi_libelle, typ_libelle
FROM ouvrage AS o1
INNER JOIN thematique ON ( o1.ouv_the_id = the_id )
LEFT JOIN editeur ON ( o1.ouv_edi_id = edi_id )
INNER JOIN TYPE ON ( o1.ouv_typ_id = typ_id ) , ecrire
INNER JOIN ouvrage o2 ON ( ecr_ouv_id = o2.ouv_id )
INNER JOIN auteur ON ( ecr_aut_id = aut_id )
j'obtiens bien mes 3 articles.
Néanmoins si je fais
SELECT DISTINCT o1.ouv_id, o1.ouv_titre, o1.ouv_photoLien, o1.ouv_resume, o1.ouv_annee, o1.ouv_volume, o1.ouv_page, the_libelle, edi_libelle, typ_libelle
FROM ouvrage AS o1
INNER JOIN thematique ON ( o1.ouv_the_id = the_id )
LEFT JOIN editeur ON ( o1.ouv_edi_id = edi_id )
INNER JOIN TYPE ON ( o1.ouv_typ_id = typ_id ) , ecrire
INNER JOIN ouvrage o2 ON ( ecr_ouv_id = o2.ouv_id )
INNER JOIN auteur ON ( ecr_aut_id = aut_id )
WHERE CONCAT( o1.ouv_titre, o1.ouv_resume, o1.ouv_annee, the_libelle, edi_libelle, typ_libelle, aut_nom, aut_prenom, aut_displayName ) LIKE (
"%%"
)
j'en obtiens que deux, ça m'angoisse (les mêmes que j'obtiens quand mon keyword vaut "FOUCAUD") ...
Je ne comprends pas ta réponse...
Mais si je fais :
[sql]
SELECT DISTINCT o1.ouv_id, o1.ouv_titre, o1.ouv_photoLien, o1.ouv_resume, o1.ouv_annee, o1.ouv_volume, o1.ouv_page, the_libelle, edi_libelle, typ_libelle
FROM ouvrage AS o1
INNER JOIN thematique ON ( o1.ouv_the_id = the_id )
LEFT JOIN editeur ON ( o1.ouv_edi_id = edi_id )
INNER JOIN TYPE ON ( o1.ouv_typ_id = typ_id ) , ecrire
INNER JOIN ouvrage o2 ON ( ecr_ouv_id = o2.ouv_id )
INNER JOIN auteur ON ( ecr_aut_id = aut_id )
[/sql]
j'obtiens bien mes 3 articles.
Néanmoins si je fais
[sql]
SELECT DISTINCT o1.ouv_id, o1.ouv_titre, o1.ouv_photoLien, o1.ouv_resume, o1.ouv_annee, o1.ouv_volume, o1.ouv_page, the_libelle, edi_libelle, typ_libelle
FROM ouvrage AS o1
INNER JOIN thematique ON ( o1.ouv_the_id = the_id )
LEFT JOIN editeur ON ( o1.ouv_edi_id = edi_id )
INNER JOIN TYPE ON ( o1.ouv_typ_id = typ_id ) , ecrire
INNER JOIN ouvrage o2 ON ( ecr_ouv_id = o2.ouv_id )
INNER JOIN auteur ON ( ecr_aut_id = aut_id )
WHERE CONCAT( o1.ouv_titre, o1.ouv_resume, o1.ouv_annee, the_libelle, edi_libelle, typ_libelle, aut_nom, aut_prenom, aut_displayName ) LIKE (
"%%"
)
[/sql]
j'en obtiens que deux, ça m'angoisse (les mêmes que j'obtiens quand mon keyword vaut "FOUCAUD") ...