if  exists(select a from store where a  in(1,2,3,4,5))
begin
update sale   set spnumber=(spnumber+@number)where sale.sproduct_id=(select pproduct_id from inserted)
else
begin
insert into store values(@product_id,@user_id,@number,@db_id,1)
end
1:我想知道当if条件中1,2,4在表store存在,3,5在store表为存在,那这个触发器是怎么一个运行过程?
2.还有就是听说用in的影响效率请问我写的代码中in可以怎么代替?