电竞比分网-中国电竞赛事及体育赛事平台

分享

oracle列中帶有換行等特殊符號查找方式

 soft_xiang 2015-04-29
 

查詢某列是否有空行
select comments from s_org_ext_x t1 where  instr(t1.comments,chr(13))>0 or  instr(t1.comments,chr(10))>0


更新
 update s_org_ext_x t1 set comments=replace(replace(comments,chr(10),''),chr(13),'')
 where  instr(t1.comments,chr(13))>0 or  instr(t1.comments,chr(10))>0

    本站是提供個人知識管理的網絡存儲空間,所有內容均由用戶發(fā)布,不代表本站觀點。請注意甄別內容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內容,請點擊一鍵舉報。
    轉藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多