这个语句也会错?
语句为:
CREATE PROCEDURE my_test_proc()
BEGIN
DECLARE my_variable INT;
END;$$
执行会提示
错误码: 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 'INT' at line 3
如果执行:
CREATE PROCEDURE my_test_proc()
BEGIN
END;$$
虽然没内容 但是可以成功执行。 为什么呢?
DECLARE my_variable INT; 这句有错吗?匪夷所思啊!!!!!!