delete A from (A left join B on B.b=A.a) where B.c='';不知道这句SQL语句对不???

解决方案 »

  1.   

    delete from A where B.b=A.a and B.c=''
      

  2.   

    --try
    delete A 
    from B
    where B.b=A.a and B.c=''
      

  3.   

    delete from A where B.b=A.a and B.c=''
    不行耶
      

  4.   

    delete A from A 
    left join B 
     on B.b=A.a where B.c='';
      

  5.   

    delete a from a left join b on b.b=a.a where b.c=''
      

  6.   

    有點看不動,可以舉例說明下。tks
      

  7.   

    delete a from a left join b on b.b=a.a where b.c=''这个也不行耶
      

  8.   

    delete A from (A left join B on B.b=A.a) where B.c=''====================1.如果delete后面的那个A是字段名还是你想作用的表名?
    暂且按表名处理delete A.a from A where A.a in 
          ( select A.a from A left join B on A.a = B.b where B.c = '')