DELIMITER $$
USE `sign`$$
DROP PROCEDURE IF EXISTS `SP_SetCalledPasswdTempSaveTimeLen`$$
CREATE DEFINER=`root`@`localhost` PROCEDURE `SP_SetCalledPasswdTempSaveTimeLen`(
IN strOpStyle VARCHAR(1),
IN strSetMode VARCHAR(1),
IN strWxid VARCHAR(64),
IN strMobilePhoneNum VARCHAR(32),
IN strUserIdcardNum VARCHAR(64),
IN strRealNameSoftCertCalledPasswd VARCHAR(64),
OUT strResultMsg VARCHAR(256)
)
BEGIN
/* 声明变量 */
DECLARE v_nRowCnt INT DEFAULT 0;
DECLARE v_cert_called_passwd VARCHAR(64);
DECLARE v_user_idcard_num VARCHAR(64);
END$$
DELIMITER ;
=========================
错误代码: 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 'DECLARE v_cert_called_passwd VARCHAR(64);
DECLARE v_user_idcard_num ' at line 1
原因:就因为第一行的 DELIMITER $$ 没有 顶到最左侧!!!实在是个坑!!!