create trigger T_ComputerNewUpdateChassis on [dbo].[computerNew] for insert as update dbo.inport set quantity = quantity - 1 where inportName = (select Chassis from inserted)
这是一个插入触发器。
这句的语句大意是:但此表插入语句,另外一个表与之相应的项就会减少1
参考来自:http://blog.csdn.net/wangboxian/article/details/7303474