1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
   | test@BROCANTE> select * from b;
 
        C1 C2
---------- --------------------
      3501 Information Toto
      3502 Information Tata
      3503 Information Titi
      3504 Information Tutu
      3506 Information Tyty
 
test@BROCANTE> insert into b values (3501, 'Information 2');
 
1 row created.
 
test@BROCANTE> update a
   2  set c2 = (select b.c2 from b
   3  where b.c1=a.c1)
   4  where exists ( select 'oui' from b
   5  where b.c1=a.c1);
set c2 = (select b.c2 from b
          *
ERROR at line 2:
ORA-01427: single-row subquery returns more than one row | 
Partager