oracle 正則表達式
select * from (
select t.platform as platform,
t.version_id as version_id,
t.version as oversion,
regexp_substr(t.version, '^[[:digit:]\.]') as bigver,
decode(regexp_substr(version, '^[[:digit:]\.]'),4,regexp_substr(version, '^[:digit:][:digit:][:digit:][:digit:]+)+$') is not null
and t.version != 'all'
)
where version is not null
select t.platform as platform,
t.version_id as version_id,
t.version as oversion,
regexp_substr(t.version, '^[[:digit:]\.]') as bigver,
decode(regexp_substr(version, '^[[:digit:]\.]'),4,regexp_substr(version, '^[:digit:][:digit:][:digit:][:digit:]+)+$') is not null
and t.version != 'all'
)
where version is not null
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
oracle存儲過程使用MD5加密
dreamZhf
2020-07-08 12:36:08
oracle查詢IP地域信息
dreamZhf
2020-07-08 12:36:08
Oracle sql 判重
星星702
2020-07-08 11:55:31
Oracle 歸檔日誌介紹
Has_it
2020-07-08 11:45:27
log_archive_dest_n 和log_archive_dest和 log_archive_duplex_dest
Has_it
2020-07-08 11:45:24
Oracle遇到錯誤
Has_it
2020-07-08 11:45:23
Oracle索引錯誤的解決辦法
Has_it
2020-07-08 11:45:21
Oracle 12c 進程
_梓杰_
2020-07-08 11:20:01
使用Oracle透明網關(Gataway)操作SQL Server
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(一)簡介
_梓杰_
2020-07-08 11:20:01
ASH (Active Session History)活躍會話歷史信息
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(三)Oracle Data Guard補充技術
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(二)DG服務&故障恢復
_梓杰_
2020-07-08 11:20:01