无法在 Mysql 5.6.13 中创建存储过程

Unable to create stored procedures in Mysql 5.6.13

我正在尝试在 MYSQL 5.6.13

中创建一个简单的存储过程
create procedure create_logger_id(IN mobile BIGINT)
BEGIN
  SELECT COUNT(*) INTO mobile FROM USER_REG_TYPE;
END

但是得到这个错误: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 '' at line 3

我什至尝试了 delimiter //DECLARE mobile INT 和其他几个都导致了同样的错误。

MYSQL 服务器托管在 AWS RDS 上(添加此信息以了解是否存在已知问题)

更新: 如果我尝试

DELIMITER //;
CREATE PROCEDURE create_logger_id(IN mobile BIGINT)
BEGIN
  SELECT COUNT(*) INTO mobile FROM USER_REG_TYPE;
END //
DELIMITER ;

我收到以下错误

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 'DELIMITER //' at line 1

您需要添加分隔符。

DELIMITER //
CREATE PROCEDURE create_logger_id(IN mobile BIGINT)
BEGIN
  SELECT COUNT(*) INTO mobile FROM USER_REG_TYPE;
END //
DELIMITER ;

我想鼓励您阅读更多有关分隔符的内容:Delimiters in MySQL