我有这个疑问:SQL查询无法找到的错误
DECLARE @i int = 0
WHILE @i < 100 BEGIN
SET @i = @i + 1
INSERT INTO lottery (ticket, bought) VALUES (@i, false)
END
MySQL服务器
Error: Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DECLARE @i int = 0 WHILE @i < 100 BEGIN
SET @i = @i + 1 INSERT INTO lott' at line 1
但它说的错误是,但不是哪里。 我做错了什么?