语句为:
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()   
BEGINEND;$$虽然没内容 但是可以成功执行。 为什么呢?
    
DECLARE my_variable INT;  这句有错吗?匪夷所思啊!!!!!!