Bonjour,
je tourne en rond depuis 1h pour trouver une solution au probleme suivant; si vous avez la soluce....
j'ai 2 tables:
----------------
| ma_liste |
----------------
| id_liste |
| choix1 |
| choix2 |
| |
----------------
----------------
| livre |
----------------
| id_livre |
| nom |
| nom_ang |
| |
----------------
Enregistrement contenue dans les table:
ma_liste:
id_liste | choix1 | choix2
--------------------------------
1 | 226 | 445
2 | 333 | 120
3 | 97 | 62
...
livre:
id_livre | nom | nom_ang
---------------------------------------------------------
01 | il etait un fois | once upon a time
97 | lucky-luck | lucky-luck
60 | abc | abc
226 | bonjour | hello
445 | la mer | the sea
....
le lien entre les 2 tables est les identifiant numeriques (choix1, choix2 et id_livre)
voila pour le décor;
je voudrai donc,en une seul requete, à partir de la table 'ma_liste': selectionner l'enregistrement dont l'id_liste =1, mais aussi que les numero de choix1 et choix2 soient remplacé par les titre des livre correpsondants; ca donnerait une ligne du type:
id_liste | choix1 | choix2
----------------------------------------
1 | bonjour | la mer
Merci à vous
Partager