I am having some problems with the REPEAT
Query in MySQL. I asked a similar question not too long ago but it was never answered.
Basically what I am trying to do is insert 300 rows of the same data, into the fields Password
and Email
.
Here is the code I am trying to enter:
REPEAT
INSERT INTO mysqltest.noderedtest (Password, Email)
VALUES ("Test", "email@email.com")
UNTIL Room Number >= 300
END REPEAT;
I am getting the error:
Syntax Error: 'Repeat' (repeat) is not valid input at this position.
Any help with this will be really appreciated!