尝试学习如何在 mysql 中使用存储过程,这是我的代码:
CREATE PROCEDURE Trial1 (IN param1 INT, OUT param2 INT) SELECT COUNT(*)
INTO param2 FROM books WHERE id = param1;
CALL Trial1(1,@a); SELECT @a;
它给了我以下信息:
ERROR 1370 (42000): execute command denied to user
''@'localhost' for routine 'test.Trial2'