正则符号释义
regexp_substr()函数的用法
在SQL中尝试使用正则,可以试下regexp_substr()来进行分割
1.首先创建一个实验视图:
SQL>
create or replace...如下:
select regexp_substr(a.ip, '[^.]+', 1, 1) ip1,
regexp_substr(a.ip, '[^.]+', 1, 2) ip2,
regexp_substr...(a.ip, '[^.]+', 1, 3) ip3,
regexp_substr(a.ip, '[^.]+', 1, 4) ip4 from test_ip a;
分析:
regexp_substr()...() 函数检查子字符串:
SELECT
REGEXP_SUBSTR('Cat City is SO Cute!'..., 'C.t', 1) 'Pos 1',
REGEXP_SUBSTR('Cat City is SO Cute!'