在MySQL5.0中船舰存储过程通不过,提示:
[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 '' at line 54
实在找不出哪里错了,请高手指点一下
代码如下:
SQL code:
CREATE DEFINER=`root`@`localhost` PROCEDURE `forum_register`(
in email varchar(30),
in password varchar(16),
in userName char(8),
in qq char(10),
in securityQuestion1 varchar(40),
in securityQuestion2 varchar(40),
in securityAnswer1 varchar(40),
in securityAnswer2 varchar(40),
in headPicture blob,
in registerTime datetime,
in participatedTopicsCount int,
in createdTopicsCount int,
in managingSectionID smallint,
in currentUploadSize float,
in state char(1)
)
begin
insert into forum_users(
用户名,
邮箱,
参与主题数,
发起主题数,
密码,
QQ,
头像,
注册时间,
密保问题1,
密保答案1,
密保问题2,
密保答案2,
管理版块ID,
当前上传容量,
状态
)
values(
userName,
email ,
participatedTopicsCount ,
createdTopicsCount,
password,
qq,
headPicture ,
registerTime,
我想在mysql中将t_flow_card_detail表中的client_id字段改为外键,引用t_client表中的client_id字段:
我的sql语句是: alter table t_flow_card_detail add constraint FK_flowcard_client foreig ......