手机
当前位置:查字典教程网 >编程开发 >Oracle教程 >oracle查询不含括号及不含指定字符的方法
oracle查询不含括号及不含指定字符的方法
摘要:oracle查询不含括号不含指定字符的记录方法如下:withtmp_tas(select1asid,'测试4321_CS'asnamefro...

oracle查询不含括号不含指定字符的记录方法如下:

with tmp_t as( select 1 as id,'测试4321_CS' as name from dual union all select 2,'测试 1200(测试版)' from dual union all select 3,'测试123(测试版)' from dual union all select 4,'测试 1212(D2)' from dual union all select 5,'测试 1212(D2)测试版' from dual union all select 6,'测试 123' from dual) select * from tmp_t where instr(name, '_CS') = 0 and regexp_instr(name, '(.*)') = 0 and regexp_instr(name, '(.*)') = 0

结果为:

oracle查询不含括号及不含指定字符的方法1

其中regexp_instr为Oracle支持的正则表达式函数,其功能与instr相似。此处匹配了含有括号()和()的记录。

【oracle查询不含括号及不含指定字符的方法】相关文章:

oracle 合并查询 事务 sql函数小知识学习

在Oracle PL/SQL中游标声明中表名动态变化的方法

oracle中rman备份集加密的方法

linux下oracle设置开机自启动实现方法

在OracleE数据库的字段上建立索引的方法

oracle中decode函数的使用方法

Oracle 多行记录合并/连接/聚合字符串的几种方法

oracle 存储过程加密的方法

oracle应用程序实现打包 的方法

oracle 常见等待事件及处理方法

精品推荐
分类导航