欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

mysql 存储过程运行成功,但是call procedure 的时候却报错

程序员文章站 2022-05-24 20:36:04
...
mysql存储过程

BEGIN
DECLARE i INT;
SET i = 18672700000;

WHILE i INSERT INTO userinfo (
Uid,
Utype,
Tmac,
ACname,
SSID,
UTip,
UTtype,
ULtime,
UOtime,
POname,
Portal,
Appid
)
VALUES
(
i,
'普通用户',
'0C-37-DC-804',
'0020000000',
'wanglangwifi',
'192.168.0.1',
'IPHONE6',
FROM_UNIXTIME(UNIX_TIMESTAMP('20100101000000') + ROUND(RAND() * (UNIX_TIMESTAMP() - UNIX_TIMESTAMP('20100101000000')))),
FLOOR(RAND() * 100 + 1),
'默认组织机构',
'10.0.13.2',
FLOOR(RAND() * 757 + 1)
);
SET i = i + 1;
END WHILE;
END

call procedure wanglang5(18672796110);显示如下错误
[SQL]CALL PROCEDURE wanglang5(18672796110)

[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 'PROCEDURE wanglang5(18672796110)' at line 1

相关标签: mysql 存储过程