语句:
delete from TA where id in (
    select a.id from TA a,TB b where a.id=b.id)
再执行时这条语句报错,不知问题何在?
请高人帮忙!!谢谢

解决方案 »

  1.   

    delete a from TA a,TB b where a.id=b.id
      

  2.   

    什么错误信息?
    delete a from TA a inner join TB b on a.id=b.id
      

  3.   

    如果是你的语句,则改成这样:delete TA from TA where id in ( 
        select a.id from TA a,TB b where a.id=b.id) 
      

  4.   

    delete a from TA a,TB b where a.id=b.id用一楼的这个语句就行了。 delete 中不允许表在后面的 where 中再出现了。
      

  5.   

     delete 中不允许表在后面的 where 中再出现了。
    ------------------------------------
    根本原因所在
      

  6.   

    delete from TA a ,TB b where a.id=b.id
    应该可以的吧