日期:2014-05-18  浏览次数:20676 次

SQL Proc Insert Update
问题如图所示:

错误提示:


------解决方案--------------------
if 下面要有运行语句,如果没有的话 就改条件,用NOT EXISTS 后面不要用else了
------解决方案--------------------
SQL code
改成
if not exists(select ...)
begin
insert ...
update ....
end