通过存储过程修改table,为什么修改不了的?以下是否写错了,请指教!
CREATE PROCEDURE UserInforModify
(
@UserName nvarchar(20),
@Pass nvarchar(20),
@QQ int,
@Sex int,
@email nvarchar(50),
@Sign nvarchar(20),
@HeadImg nvarchar(100)
)
as
update users
set
@Pass=Pass,
@Sex=Sex,
@email=email,
@QQ=QQ,
@HeadImg=HeadImg,
@Sign=Sign
where
UserName=@UserName
GO
------解决方案--------------------@Pass=Pass,
@Sex=Sex,
@email=email,
@QQ=QQ,
@HeadImg=HeadImg,
@Sign=Sign
都写反了