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

WBOY
发布: 2016-06-06 09:39:37
原创
2136 人浏览过

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

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板