How can I write a loop that runs n times in MySql without using a stored procedure.
This is how I do it with a stored procedure:
DELIMITER $$ DROP PR
It is no possible.
I read all MySQL documentation and it is sentences can only be declared in function/procedure body.