如何在oracle中获取没有五位数字的特殊字符?
How to fetch special char with five digits no in oracle?
我正在尝试获取:五位数字在 oracle 中没有值。
我的数据看起来是这种格式。
this :years 2016 only department :12345
aign:BR-PESP-THELIMITED-:30510
:thiss and :years 2016 only department :12345
travel visa :34322 LLL001
我正在使用这个查询
substring(check1,regexp_instr(check1,':'),6)
my current o/p:
years
BR-PE
thiss
34322
my expected o/p
12345
30510
12345
34322
如果要return冒号后的五位数字:
select regexp_substr(check1, ':([0-9]{5})', 1, 1)
我正在尝试获取:五位数字在 oracle 中没有值。 我的数据看起来是这种格式。
this :years 2016 only department :12345
aign:BR-PESP-THELIMITED-:30510
:thiss and :years 2016 only department :12345
travel visa :34322 LLL001
我正在使用这个查询
substring(check1,regexp_instr(check1,':'),6)
my current o/p:
years
BR-PE
thiss
34322
my expected o/p
12345
30510
12345
34322
如果要return冒号后的五位数字:
select regexp_substr(check1, ':([0-9]{5})', 1, 1)