你在Table1的觸發器中作批處理就是啦

解决方案 »

  1.   

    可以呀,sql server的触发器可以根据你的语句触发的
      

  2.   

    --测试
    create table a1(
    a int,
    b int
    )
    go
    create table a2(
    a int,
    b int
    ) goCREATE TRIGGER testinsert
    ON a1
    FOR  INSERT
    AS 
    BEGIN
    insert into a2 select * from inserted
    end
    GO
    select * from a1
    select * from a2
    go
    insert into a1 select 1,1 from sysobjects
    go
    select * from a1
    select * from a2
      

  3.   

    意思就是Inserted表可以是多條記錄的?