bonjour,

j'utilisais regulierement sous ingres cette syntaxe :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
update table1 a1
from table1 a2
set col2 = a2.col2,
      col3=a2.col3
where a1.col1=a2.col1
Celle-ci n'existe pas sous oracle

j'ai trouvé ceci :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
update table1 a1
set a1.col2 = ( select a2.col2 from table1 a2 where a1.col1=a2.col1),
     a1.col3 = ( select a2.col3 from table1 a2 where a1.col1=a2.col1)
Y aurait-il une meilleure ecriture ? ( je suis sous oracle 9.2)

Merci