My goal is to create a series of "SET" commands using the LOOP command:
SET @value_title_1 = value_1
SET @value_title_2 = value_2
...
SET @value_title_99 = value_99
the numbering (counter) needs to increase by equal amount of 1 on both sides of the SET command.
The following is a representation of the code I am working with and also includes the "dummy entry" (you will recognize this by SET concat on the LEFT side of the equasion, which is the tricky part)
delimiter $$ 
 CREATE PROCEDURE set_values_table()
 DETERMINISTIC
 BEGIN
 DECLARE counter INT DEFAULT 1;
simple_loop: LOOP
    SET counter=counter+1;
    SET concat('@value_title_',counter) = concat('value_',counter);
IF counter = 99 THEN
 LEAVE simple_loop;
 END IF;
 END LOOP simple_loop;
 SELECT "procedure completed!";
 END$$
 delimiter ;
call set_values_table();
Unfortunately, the SET concat(...) yields a syntax error. Any direction or step closer to solution would be much appreciated! Or is there another way to accomplish the same result as stated above?
 
    