I'd like to insert array data equip to a table using loop.
var svr = 1;
var equip = [3, 4, 5];
For that I need to insert the data three times.
Looks like this:
INSERT INTO khnp.link_server_equipment_map(svr, equip)
VALUES (1, 3);
INSERT INTO khnp.link_server_equipment_map(svr, equip)
VALUES (1, 4);
INSERT INTO khnp.link_server_equipment_map(svr, equip)
VALUES (1, 5);
Can someone please get me out of this rabbit hole? Thanks