运行环境为Navicat Query Editor。
sql语句:
BEGIN
declare @i int
END
错误提示:
[SQL]BEGIN
declare @i int
END
[Err] 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 intEND' at line 2
已尝试其他语句方式:
BEGIN
declare @i int
END;
BEGIN
declare @i int()
END;
BEGIN
declare @i int();
END;