我正在运行一个查询,在其中选择 VarChar2(4000)字段中包含单词的记录。该查询有效,但仅适用于某些日期,而不适用于其他日期。
我已经尝试过REGEXP_LIKE和INSTR。我已经在SQL Developer和ACCESS中进行了尝试,并且得到了相同的结果。
Oracle:
REGEXP_LIKE(Table, 'Text')
INSTR(Table,'Text', 1)<>0
访问权限:
(((Table) Like "*" & "Text" & "*"));
区分大小写不是问题。
其他人以前见过这样的情况吗?
已编辑以显示示例数据:
**Job Date Description**
1 6/6/2017 Blah Blah Text Blah Query works and finds Text
2 6/6/2018 Blah Blah Text Blah Query can't find Text
同一查询适用于2018年之前的任何日期。