语法不对!
delete a  where a.field = b.field1;

解决方案 »

  1.   

    delete from a where a.field1 in (select b.field1 from b where a,field1=b.field1)
      

  2.   

    delete a
    where a.field in (select b.field1 from b)
      

  3.   

    多个字段在where 子句中加AND 或or
      

  4.   

    这样对吗?
    delete a
    where a.field1 in (select b.field1 from b 
                       where a.field1=b.field1 AND a.field2=b.field2 ) 
    AND   a.field2 in (select b.field1 from b 
                       where a.field1=b.field1 AND a.field2=b.field2 ) 
      

  5.   

    不好意思,再问?
    delete a
    where a.field1 in (select b.field1 from b 
                       where a.field1=b.field1 AND a.field2=b.field2 ) 
    AND   a.field2 in (select b.field2 from b 
                       where a.field1=b.field1 AND a.field2=b.field2 ) 
      

  6.   

    前一句就行了吧
    delete a
    where a.field1 in (select b.field1 from b 
                       where a.field1=b.field1 AND a.field2=b.field2 )