I'm trying to insert a bunch of records in my MySQL database table.
I am not expert to create a stored procedure.
Here is my code:
BEGIN
DECLARE var INT;
SET var = 0;
WHILE var < 100000 DO
INSERT INTO stored_copy (total, active, stored) VALUES (var, 1, 1);
SET var = var + 1;
END WHILE;
END;
Here is the error:
Can anyone check what I am doing wrong?