---
title: "oracle查询正规表达示"
author: "huang552"
date: "2018-11-12T16:14:19Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2018-11-12T16:14:19Z"
id: 2433701
url: "https://huang552.iteye.com/blog/2433701"
---

&lt;!--StartFragment --&gt;

select regexp\_substr(content,'^【\[^【】]+】|【\[^【】]+】$',1,1) 签名,status,count(\*)   
from table  
where CREATE\_TIME&gt;=trunc(sysdate)  
and status='0'  
group by regexp\_substr(content,'^【\[^【】]+】|【\[^【】]+】$',1,1),status  
order by 3 desc