Bonjour,
je souhaitais mettre à jour un score en faisant un update avec select pour faire une jointure avec table evalu:
Erreur suivante:
Erreur SQL : ORA-01427: sous-requête ramenant un enregistrement de plus d'une ligne
01427. 00000 - "single-row subquery returns more than one row"
*Cause:
*Action:
Le select fonctionne bien:
select utl_match.jaro_winkler_similarity(e1.val, e2.val)
from toto t
join evalu e1 on e1.id = t.id_1 and e1.cod_val = t.val_1
join evalu e2 on e2.id = t.id_2 and e2.cod_val = t.val_2;
Si vous avez une solution, merci ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 update toto SET score= (select utl_match.jaro_winkler_similarity(e1.val, e2.val) from toto t join evalu e1 on e1.id = t.id_1 and e1.cod_val = t.val_1 join evalu e2 on e2.id = t.id_2 and e2.cod_val = t.val_2);
Partager