在表列中查找匹配的字符串 Oracle 10g
我正在尝试使用另一列中的值搜索表中的 varchar2 列以匹配字符串。正在搜索的列允许自由格式的文本,并允许不同长度的单词和数字。我想找到一个不属于较大文本和数字字符串的字符串。
示例:1234a 应匹配“Invoice #1234a”,但不匹配“Invoice #1234a567”
采取的步骤: 我尝试过 Regexp_Like(table2.Searched_Field,table1.Invoice) 但当发票编号具有可在其他发票编号中找到的编号序列时,会出现许多错误命中。
I am trying to search a varchar2 column in a table for matching strings using the value in another column. The column being searched allows free form text and allows words and numbers of different lengths. I want to find a string that is not part of a larger string of text and numbers.
Example: 1234a should match "Invoice #1234a" but not "Invoice #1234a567"
Steps Taken:
I have tried Regexp_Like(table2.Searched_Field,table1.Invoice) but get many false hits when the invoice number has a number sequence that can be found in other invoice numbers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
建议:
仅在末尾匹配:
完全匹配:
仅在末尾匹配 LIKE:
)
完全匹配:
仅在末尾匹配 LIKE:
Suggestions:
Match only at end:
Match exactly:
Match only at end with LIKE:
)
Match exactly:
Match only at end with LIKE: