Hi I have two arrays as input. I want to insert into a table using loop. This is what I have tried.
simple_loop:LOOP SET i = i + 1; simples_loop:LOOP
Try something like this:
INSERT INTO ROLE_PRIVILEGE_BRIDGE (ROLE_ID,PRIVILEGE_ID,VALUE) (SELECT V_ROLE_FK, p_privilege_fk, p_privilege_fk FROM firstTable)