甲骨文看好前景 [英] Oracle Look behind Positive
本文介绍了甲骨文看好前景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Oracle中没有表达式背后的例子Doc ,所以我尝试使用Java语法,
我的查询应该在TOP
There is no example of look behind expression in Oracle Doc, so i tried using Java syntax,
This my query that supposed to get any digit after TOP
select regexp_substr('TIPTOP4152','(?<=TOP)\d+') sub from dual
但是什么也没显示!
推荐答案
出于争论的目的,REGEXP_SUBSTR也起作用:
For the sake of argument, REGEXP_SUBSTR works too:
SQL> select regexp_substr('TIPTOP4152', 'TOP(\d+)', 1, 1, NULL, 1) nbr
from dual;
NBR
----
4152
SQL>
这篇关于甲骨文看好前景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文