delete from talbe1 where table1.a in (select * from table2)
                     and table1.b in (select * from table2)
                     and table1.c) in (select * from table2)   

解决方案 »

  1.   

    delete from talbe1 where table1.a in (select * from table2)
                         and table1.b in (select * from table2)
                         and table1.c in (select * from table2)
      

  2.   

    delete from talbe1 where table1.a in (select 与table1.a对应的字段名 from table2)
                         and table1.b in (select 与table1.b对应的字段名 from table2)
                         and table1.c in (select 与table1.c对应的字段名 from table2)不好意思,刚刚没注意
      

  3.   

    表有没有ID字段,主键什么的?如果什么都没有,你的数据ABC是不是没有重复??
      

  4.   

    Delete a
     from table1  a join table2 b on a.a = b.a and a.b = b.b and a.c = b.c
      

  5.   

    delete from talbe1 where table1.id in (select id from table2)
                         and table1.name in (select name from table2)
                         and table1.wage in (select wage from table2)
    好像不行 啊,他报错是:
    服务器: 消息 208,级别 16,状态 1,行 2
    对象名 'talbe1' 无效。
      

  6.   

    delete from table1 where table1.id in (select id from table2)
                         and table1.name in (select name from table2)
                         and table1.wage in (select wage from table2)
      

  7.   

    table1写成了talbe1,改改就行了
    delete from table1 where table1.id in (select id from table2)
                         and table1.name in (select name from table2)
                         and table1.wage in (select wage from table2)
      

  8.   

    Delete a
     from table1  a join table2 b on a.a = b.a and a.b = b.b and a.c = b.c
    这个句子是正确的,谢谢各位好心人啊!
      

  9.   

    delete table1
    where exists(select 1 from table2 where table1.a=table2.a and table1.b=table2.b and table1.c=tabl2.c)