问题:
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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。