我的程序在运行时出错。我无法找到错误的地方?
CREATE PROCEDURE testing ()
BEGIN
DECLARE i INT;
DECLARE vSite VARCHAR(100);
set @i = 1;
BEGIN WHILE @i <= 5 DO
SET @vSite = @vSite + CONCAT('LINE '+@i+', ');
SET @i = @i + 1;
END WHILE
SELECT @vSite;
END
/* Error
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT @vSite; END' at line 10
*/
/* required output given below
LINE 1, LINE 2, LINE 3, LINE 4, LINE 5,
*/