website logo
Auteur
avatar
harlock59

Forum » » Le coin des codeurs » » [Résolu] - auto-jointure en mysql?


Posté : 30-03-2005 16:43 icone du post

EXPRESSION D'UNE AUTO-JOINTURE



UNE AUTO-JOINTURE EST UNE JOINTURE D'UNE RELATION AVEC ELLE-MEME




* EXPRESSION D'UNE AUTO-JOINTURE


- nécessite l'utilisation de synonymes pour les relations



* EXEMPLE


"Donner les paires de noms de buveurs habitant la même ville"


SELECT B1.NOM, B1.VILLE, B2.NOM

FROM BUVEURS B1, BUVEURS B2

WHERE B1.VILLE = B2.VILLE



Cet article provient de NPDS REvolution 16
https://lab.grottes-et-karsts-de-chine.org/viewtopic.php?topic=15948&forum=5