[英]SQL Server stored procedure - Insert syntax error
I am trying to create a stored procedure to store data input from web forms to a SQL Server table. 我正在尝试创建一个存储过程,以将从Web表单输入的数据存储到SQL Server表中。 I can get the select statement for
first_name
to work correctly, but when I try add more Insert statements, I get a syntax error. 我可以使
first_name
的select语句正常工作,但是当我尝试添加更多的Insert语句时,出现语法错误。
What am I doing wrong? 我究竟做错了什么? Screenshot below.
屏幕截图如下。 Thanks.
谢谢。
remove the comma ,
before parantheses. 删除逗号
,
括号前。
@email_email varchar(50),
^^^
besides I believe that your insert statement is needed to be like 除了我相信你的插入语句需要像
insert into dbo.users (first_name, last_name, email)
values (@first_name, @last_name, @email_email)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.