日期:2014-05-17 浏览次数:20595 次
create trigger tri_u on tb after update as begin update a set [state]=case when b.price>a.price then 0 else 1 end from tb a inner join deleted b on a.id=B.id end