Bonjour,
Je voudrais utiliser FORALL UPDATE .pour faire mise à jour des données en masse.
J’ai declaré :
un curseur p_ref _exception
un tableau :
script:Code:
1
2 TYPE TypTab_excpt IS TABLE OF p_ref_ exception%ROWTYPE; Tab _excpt TypTab _excpt;
J ai eu le message suivant:Code:
1
2
3
4
5
6
7
8
9
10
11
12
13 BEGIN OPEN p_ref _exception; FETCH p_ref _exception BULK COLLECT INTO Tab_excpt; CLOSE p_ref _exception; taille_excpt:=Tab_excpt.COUNT; IF taille_excpt>0 THEN FORALL idx IN 1..taille_excpt UPDATE p_monitor_temp SET count = Tab_excpt(idx).r_Cnt WHERE id = Tab_sweep_excpt(idx).r_id .. END
Comment faire pour s’en sortir de ce problèmeCode:[Error] PLS-00436 (4853: 55): PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records