in sql store procedure i have variable
IN `table2variables` VARCHAR(5000),
which hold values like this : table2variables ="88,61,35"
now i want to insert those values in table like this :
INSERT into table2(id, val) values ([id],"88");
INSERT into table2(id, val) values ([id],"61");
INSERT into table2(id, val) values ([id],"35");
so question is how can i get values from that variable? and write only one sentence to INSERT?