繁体   English   中英

SQL中的正则表达式?

[英]Regular expressions in SQL?

我想在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。

在oracle上你可以尝试一些东西

select xyz
from theTable
where not regexp_like(mycolumn,pattern)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM