当前位置: 代码迷 >> Sql Server >> 带参存储过程求解解决方法
  详细解决方案

带参存储过程求解解决方法

热度:90   发布时间:2016-04-27 10:56:20.0
带参存储过程求解
create proc stupdate
@sex varchar(5),
@score int
as 
 update dbo.StuMarks set @[email protected] where @sex='男'
go

exec dbo.stupdate '男',5

各位大哥大姐们,为什么我执行后表没有更新啊?
谢谢!

------解决方案--------------------
update dbo.StuMarks set @[email protected] where @sex='男'

这句有错。应该是StuMarks表里面的某个字段,[email protected]
  相关解决方案