[求助]触发器
请各位高手帮忙看一下,非常急~~在线等~~下面的这段代码是什么意思?
USE cpxs
IF EXISTS (Select name From sysobjects
where xtype='TR' AND name='xscp_tri')
Drop trigger xscp_tri
Go
Create Trigger xscp_tri On dbo.cpxs
For Insert,Update
AS
Begin
IF((Select ins.cpbh From Inserted ins) NOT IN (Select cpbh From cp)) //ins是什么?
RollBack
End
关于这段代码的解释,越详细越好,因为俺绝对是菜鸟中的菜鸟~~