查询分析器报错 怎么改存储过程?

查询分析器报错 怎么改存储过程?,第1张

概述问题:Create proc UpdateImage ( @id bigint, @UpdateImage Image ) As Insert Into employerInfo(Picture) values(@UpdateImage) where ID=@id GO 查询分析器报错 服务器: 消息 156,级别 15,状态 1,过程 UpdateImage,行 8 在关键字 'where' 附近有语法错误。答:insert 插入不需要where 你是…

问题:

Create proc UpdateImage
(
@ID bigint,
@UpdateImage Image
)
As
Insert Into employerInfo(Picture) values(@UpdateImage)
where ID=@ID
GO


查询分析器报错
服务器: 消息 156,级别 15,状态 1,过程 UpdateImage,行 8
在关键字 'where' 附近有语法错误。

答:

insert 插入不需要where

你是修改数据吧
Create proc UpdateImage
(
@ID bigint,
@UpdateImage Image
)
As
update employerInfo set Picture = @UpdateImage
where ID=@ID
GO

总结

以上是内存溢出为你收集整理的查询分析器报错 怎么改存储过程?全部内容,希望文章能够帮你解决查询分析器报错 怎么改存储过程?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1153321.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存