oracle查詢不含括號(hào)不含指定字符的記錄方法如下:
with tmp_t as( select 1 as id,'測(cè)試4321_CS' as name from dual union all select 2,'測(cè)試 1200(測(cè)試版)' from dual union all select 3,'測(cè)試123(測(cè)試版)' from dual union all select 4,'測(cè)試 1212(D2)' from dual union all select 5,'測(cè)試 1212(D2)測(cè)試版' from dual union all select 6,'測(cè)試 123' from dual) select * from tmp_t where instr(name, '_CS') = 0 and regexp_instr(name, '(.*)') = 0 and regexp_instr(name, '\(.*\)') = 0
結(jié)果為:
其中regexp_instr為Oracle支持的正則表達(dá)式函數(shù),其功能與instr相似。此處匹配了含有括號(hào)()和()的記錄。
標(biāo)簽:來賓 遼寧 玉樹 棗莊 大興安嶺 贛州 蘇州 長(zhǎng)沙
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《oracle查詢不含括號(hào)及不含指定字符的方法》,本文關(guān)鍵詞 oracle,查詢,不含,括號(hào),及,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。