select multiple sur plusieurs tables
Bonjour à tous,
je suis débutant en sql et j'ai un souci.
J'ai une table avec plusieurs clés etrangéres et j'aimerais selectionner la totalité des champs de toutes les tables.
Code:
1 2 3 4
| select * from check_list C, client Cl, adresse_facturation A, fonctions F, site_intervention S,
consommables Co, caracteristiques Ca, prestations P, dispose D where
che_id = 1 and C.pre_id = P.pre_id and C.car_id = Ca.car_id and C.cli_id = Cl.cli_id and C.con_id = Co.con_id and Cl.fac_id = A.fac_id and Cl.fon_id = F.fon_id and
Cl.cli_id = D.cli_id and S.sit_id = D.sit_id ; |
Bon cette méthode est barbare je vous l'accorde mais je n'ai pas de reflex technique concernant le sql. Si vous pouviez m'aiguiller. Merci à tous.