新手,遇上一个客户,请教大家!

解决方案 »

  1.   

    insert into tb select * from ta  t where not exists(select 1 from tb where id=t.id)
      

  2.   

    楼上是不是写错了?from ta  t where怎么有两个表的?写多了一个“ta”了吧?
      

  3.   

    inset into tb select * from t where not exists(select 1 from tb where id = t.id)我写成这样。。没错吧··
      

  4.   

    insert into tb select * from t where not exists(select 1 from tb where id = t.id)