您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何在Oracle中的字符串中查找精确的字符串匹配

如何在Oracle中的字符串中查找精确的字符串匹配

有时在比较之前在字符串中添加一些内容很有用,然后每个元素都遵循相同的格式:

with testData as
(
  select 'Read Only, Write, read only, Admin' test from dual union all
  select 'Read, Write, read only, Admin'  test from dual union all
  select 'Admin, Read Only (no), read only(see mgr), Admin' test from dual
)
select * from testData
where lower(test)||',' like '%read only,%';
Oracle 2022/1/1 18:47:08 有363人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶