对包含撇号的名称执行部分搜索时,结果不正确 [英] Incorrect results when performing partial search for a name that contains an apostrophe

查看:62
本文介绍了对包含撇号的名称执行部分搜索时,结果不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在搜索包含单引号的客户端名称时,如果仅输入名称的一部分,则不会返回任何记录.您必须输入全名才能返回记录.


例子:

数据输入的记录返回
Robin O’无
罗宾·奥恩(Robin O’N)无人
罗宾·奥尼(Robin O’Ne)无
罗宾·奥尼(Robin O’Nea)无
罗宾·奥尼尔(Robin O’Neal)正确的记录

请让我知道这一点....

When searching for a client name that contains an apostrophe, if you enter only a part of the name, no records are returned. You must enter the entire name in order to get records returned.


Example :

Data Entered Records Returned
Robin O’ None
Robin O’N None
Robin O’Ne None
Robin O’Nea None
Robin O’Neal Correct record

Please let me know on this....

推荐答案

始终在您的问题中张贴您的代码/查询以快速响应,否则您将不会..

在这里你
SQL Server类似 [ SQL Server参考手册-通配符 [ ^ ]
Always post your code/query in your question for quick response otherwise you won''t..

Here you go
SQL SERVER – Tips from the SQL Joes 2 Pros Development Series – Finding Apostrophes in String and Text – Day 3 of 35[^]

For your information
SQL Server LIKE[^]
SQL Server Reference Manual - Wildcard Characters[^]


这篇关于对包含撇号的名称执行部分搜索时,结果不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆