<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    望塵軒中一盞茶

    統計

    留言簿

    友情鏈接

    閱讀排行榜

    評論排行榜

    Oracle 刪除同名同身份證號的重復數據

            最近處理的系統中出現了大量重復數據,身份證號和姓名一樣。而身份證號是作為用戶登錄系統的用戶名,這樣如果用戶修改了密碼,就有可能出現登錄不了的情況。
            參閱了相關資料后,找到一種比較方便的刪除重復數據的方法,記錄如下(方便以后參考):
    1delete from t_test where rowid not in
    2(select max(t.rowid) from t_test t group by name,cardid);


    備份其它的語句:
    根據身份證號碼更新考生的性別信息:
    update t_examinee set eneesex='' where eneesex='X' and length(cardid)=18 and substr(cardid, 171in ('1','3','5','7','9')

    update t_examinee set eneesex='' where eneesex='X' and length(cardid)=18 and substr(cardid, 171in ('0','2','4','6','8')

    update t_examinee set eneesex='' where eneesex='X' and length(cardid)=15 and substr(cardid, 151in ('1','3','5','7','9')

    update t_examinee set eneesex='' where eneesex='X' and length(cardid)=15 and substr(cardid, 151in ('0','2','4','6','8')
    更新人員的身份證號碼信息:
    update t_mytable set cardid=substr(cardid,0,17)||'X' where cardid like '%x' and cardtype='居民身份證' and length(cardid)=18
    使用A表的數據更新B表的對應數據:
    update t_e1 set (inyear) = (select exyear as inyear 
    from t_tempyear where t_e1.eneeid=t_tempyear.eneeid) 
    where exists(select 1 from t_tempyear where t_tempyear.eneeid=t_e1.eneeid)


    posted on 2009-02-26 10:45 wzhongyu 閱讀(832) 評論(0)  編輯  收藏 所屬分類: Java學習

    我的便捷門:綜合頻道 數碼頻道 商城頻道 電器頻道 男人頻道 女人頻道 居家玩具 美容頻道 飾品鞋包 食品頻道 臺灣館頻道
    主站蜘蛛池模板: 两性刺激生活片免费视频 | 久久久久久亚洲精品| 香港特级三A毛片免费观看| 久久不见久久见中文字幕免费| 亚洲精品视频在线播放| 免费无码成人AV在线播放不卡| 国产精品亚洲一区二区三区在线| 产传媒61国产免费| 亚洲A∨午夜成人片精品网站| 免费播放美女一级毛片| 四虎精品亚洲一区二区三区| 一级a性色生活片久久无少妇一级婬片免费放 | 亚洲国产精品无码观看久久| 特级做A爰片毛片免费69 | 国产亚洲精品自在线观看| 一级一级一片免费高清| 日本亚洲国产一区二区三区| 成人网站免费看黄A站视频| 亚洲天堂在线播放| 成人免费一级毛片在线播放视频| 亚洲乱人伦精品图片| 在线免费观看色片| 一级做a爰黑人又硬又粗免费看51社区国产精品视| 免费观看午夜在线欧差毛片| 一级午夜免费视频| 久久亚洲精品无码VA大香大香| 国产精品成人免费一区二区| 国产亚洲男人的天堂在线观看| 亚洲一区二区女搞男| 亚洲免费观看网站| 国产偷国产偷亚洲高清人| 亚洲人成中文字幕在线观看| 日韩免费一区二区三区在线播放| 亚洲s码欧洲m码吹潮| 亚洲另类激情综合偷自拍图| 2021国内精品久久久久精免费| 亚洲日本天堂在线| 亚洲国产精品嫩草影院在线观看| 久久九九兔免费精品6| 污污的视频在线免费观看| 亚洲Av综合色区无码专区桃色|