delete t where exists(select 1 from w where id=t.id and bankn=t.bankan)

解决方案 »

  1.   

    delete t where exists(select 1 from w where id=t.id and bankn=t.bankan)或:delete t from w where w.id=t.id and w.bankn=t.bankan
      

  2.   

    delete t from w where t.id = w.id and t.bankn = w.bankn
      

  3.   

    delete t from t inner join w on t.id=w.id and t.bankn=w.bankn
      

  4.   

    delete t from t,w where t.id=w.id and t.bankn=w.bankn
      

  5.   

    delete T
    where id + bankn in (select (id + bankn) from w)
      

  6.   

    delete t from w where t.id = (select w.id from w where w.id=t.id and t.bankn = w.bankn)
      

  7.   

    delete t from t,w where t.id=w.id and t.bankn=w.bankn
      

  8.   

    delete t from w where w.id=t.id and w.bankn=t.bankan