SQL Proc Insert Update问题如图所示:错误提示:[解决办法]if 下面要有运行语句,如果没有的话 就改条件,用NOT EXISTS 后面不要用else了[解决办法]
改成if not exists(select ...)begininsert ...update ....end