delete tai from s1,s2 where s1.tai=s2.tai   我想删除S1里面TAI 列 与S2 TAI 列 值相同的列   改怎么写

解决方案 »

  1.   

    delete s1 from s1,s2 where s1.tai=s2.tai
      

  2.   

    update s1 set tai=''
    from s1,s2
    where s1.tai=s2.tai
      

  3.   

    --刪除資料
    delete s1
    where exists(select 1 from s2 where tai=s1.tai)
      

  4.   

    delete from s1 where tai in(select tai from s2) 这样行吗
      

  5.   

    lz想删啥?..delete是删行的..要删列..用update set null
    或 alter table tb_name drop column column_name
      

  6.   

    update s1 set tai=''
    from s1,s2
    where s1.tai=s2.tai
      

  7.   

    想删除行  但是我试了  里面很多NULL值