使用N和英文搜索字符串 [英] using N with english searching string

查看:65
本文介绍了使用N和英文搜索字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们想在sql server中搜索unicode数据,我们需要在搜索字符串之前使用N.如果我也使用N和英文字符串那么这会给我提供错误的结果吗?

if we want to serach unicode data in sql server we need to use N before the searching string. If i use N also with English string then does this provide me wrong result or else?

推荐答案

这不是问题,因为N(unicode)字符集是Windows使用的原始ANSI字符集的扩展(SQL Server文档注意到它是ASCII,但它不是标准ASCII)。如果您阅读 unicode规范 [ ^ ]所有英文字符都在正确的位置。
This can not be a problem, since N (unicode) character sets are an extension of the original ANSI character sets used by Windows (SQL Server documentation is noting it as ASCII, but it is not standard ASCII). If you read the unicode specification[^], you will see, that all English characters are on the right place.


这篇关于使用N和英文搜索字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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