Problème update trois tables
Bonjour,
J'ai une table sous Oracle11"table3" dont je dois mettre a jour le contenu en fonction d'un champ d'une autre table "table2", et le test dépend de "table2" et de "table1".
J'ai essayé ceci sans succès
Code:
1 2 3 4 5 6 7 8
|
-- 599 records
select t.tso_ref_mess,o.tdo_Num from table2 o,table1 i,table3 t where o.tdo_tin_id=tin_id and i.tin_tay_id=51 and t.tso_tdo_id=o.tdo_id
=> nombre de records existant a changer
--234 866
-- update table3 t SET t.tso_ref_mess=(select o.tdo_Num from table2 o,table1 i where o.tdo_tin_id=tin_id and i.tin_tay_id=51 and t.tso_tdo_id=o.tdo_id)
=> il me manque quelque chose ! |
Merci de votre aide
Phil