用触发器很容易解决...<br>如:<br>CREATE TRIGGER TResult_D ON dbo.TResult <br>FOR DELETE<br>AS<br> insert TResult_bb SELECT a.*,b.Result_data ,'删除',getdate()<br> from deleted a LEFT JOIN<br> TResult_data b ON a.Result_ID = b.Result_ID<br>CREATE TRIGGER TResult_I ON dbo.TResult <br>FOR INSERT<br>AS<br> insert TResult_bb SELECT a.*,b.Result_data ,'增加',getdate()<br> FROM inserted a LEFT JOIN<br> TResult_data b ON a.Result_ID = b.Result_ID<br><br>CREATE TRIGGER TResult_M ON dbo.TResult <br>FOR UPDATE<br>AS<br> IF update(tester) or update(Approver)<br> insert TResult_bb SELECT a.*,b.Result_data ,'修改',getdate()<br> FROM inserted a LEFT JOIN<br> TResult_data b ON a.Result_ID = b.Result_ID