天
天涯一客
Unregistered / Unconfirmed
GUEST, unregistred user!
CREATE trigger rso_trigger on dbo.RoomNum<br>for delete,insert ,update<br>as<br><br>IF (COLUMNS_UPDATED() &62  > 0<br><br> BEGIN<br><br> INSERT INTO rm_def (com_host,com_addr, flog, floor, rm_num)<br> SELECT ins.com_host,ins.com_addr,ins.flog, ins.floor,ins.rm_num<br> FROM inserted ins <br> <br> END<br> <br> delete serve from deleted b where serve.flog = b.flog AND serve.floor = b.floor AND <br> serve.RM_Num = b.Rm_num and serve.com_addr=b.com_addr and serve.com_host=b.com_host<br><br>请问我上面有7个字段,上面的要求是2到6字段的要求,可是当我改动第个时,rm_def 的那条记寻被删除了,请问高手怎么改