SQL中的正则表达式?

时间:2014-12-17 14:39:42

标签: sql regex oracle

我想在Oracle 11g SQL中使用正则表达式来查找与它不匹配的记录。正则表达式是:

/([A-Z]{3})+([0-9])\w+/g

我想使用的SQL类似于:

select
  stu_code
  ,stu_insc
from
  intuit.ins_stu
where
  stu_insc not like ('/([A-Z]{3})+([0-9])\w+/g')

显然我知道上面的说法不对,所以有谁知道我是怎么做到的?我无权运行任何PL / SQL。

1 个答案:

答案 0 :(得分:4)

在oracle上你可以尝试一些

select xyz
from theTable
where not regexp_like(mycolumn,pattern)
相关问题