問題:
Create proc UpdateImage
(
@id bigint,
@UpdateImage Image
)
As
Insert Into employerInfo(Picture) values(@UpdateImage)
where ID=@id
GO
查詢分析器報(bào)錯(cuò)
服務(wù)器: 消息 156,級(jí)別 15,狀態(tài) 1,過程 UpdateImage,行 8
在關(guān)鍵字 'where' 附近有語(yǔ)法錯(cuò)誤。
答:
insert 插入不需要where
你是修改數(shù)據(jù)吧
Create proc UpdateImage
(
@id bigint,
@UpdateImage Image
)
As
update employerInfo set Picture = @UpdateImage
where ID=@id
GO