plsql - Concat an item with a loop variable in Oracle APEX -


i have set of item has same name add @ end of each position number :p77_variable_1, :p77_variable_2.

so in process add them database must item , make loop. loop

for in 1..:p77_nombre_variable   loop     l_variable := new sfd_si_variable_typ(sfd_si_variable_seq.nextval, :p77_nom_variable_i, :p77_type_variable_i);     sfd_si_variable_pkg.ajouter(l_variable);   end loop; 

but problem doesn't work. can know way execute loop , adding "dynamically" item (or better way concatenation variable i. thank you.

leaving off whether wise thing (using individual variables should array, e.g. using apex collection), can use v() function this.

for in 1..:p77_nombre_variable loop   l_variable := new sfd_si_variable_typ(sfd_si_variable_seq.nextval     ,v('p77_nom_variable_'||i)     ,v('p77_type_variable_'||i));   sfd_si_variable_pkg.ajouter(l_variable); end loop; 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -