Bonjour,
j'ai deux tables :
toto avec comme clé ID_toto
titi avec comme clés ID_titi et ID_toto
un toto peut avoir 0,1 ou plusieurs titi
je cherche à faire une requête qui sélectionne pour un ID_toto,ID_titi donnés le toto associé!
j'ai fais cela :
Mais ca ne marche uniquement s'il ya une enregistrement de titi associé à toto!
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 select * from toto as A left join titi as B on A.ID_toto=B.ID_toto where B.ID_toto='test1' and B.ID_titi='test2'
Partager