一种不用括号和没有指定字符的oracle查询方法

Oracle查询不包含不包含指定字符的括号,如下所示:


与tmp_t为(
选择1作为ID,测试4321_cs '的名字从双联盟所有
选择2,'测试1200(测试版)从双工会所有
选择3,'测试123(测试版)从双工会所有
从双结合中选择4,测试1212(D2)
选择5,测试1212(D2)测试版本从双工会所有
从双中选择6,测试123
选择*
从tmp_t
在仪器(名称、'_cs)= 0
和regexp_instr(名字,(。*)= 0)
和regexp_instr(名称,(* ))= 0




结果如下:



Regexp_instr is a regular expression function that is supported by Oracle, and its function is similar to that of instr.The records that contain parentheses () and () are matched here.