登山:你认为后者速度快?如果插入a表的操作的sql语句很繁琐呢,比如说包含大量的转换成交叉表的语句

解决方案 »

  1.   

    另外:select * from b inner join c on ... where b.主键 not in  (select a.主键 from a) 这么写有问题吗?怎么不起作用?
      

  2.   

    用not exists为什么就可以呢?
      select * 
    from b
    where not exists (select *  from a where b.主键 =a.主键)  not in 和not exists 有什么区别吗?
      

  3.   

    如果b,c表有数据插入,我想实现利用触发器把新插入的数据经过语句处理插入a表,请问怎么实现?sql会告诉那些数据是新插入的吗?
      

  4.   

    inserted表中记录的就是新插入的记录