問題:
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