区分ß和ss的SQL查询 [英] SQL query that distinguishes between ß and ss

查看:82
本文介绍了区分ß和ss的SQL查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SQL中似乎ß= ss 。我必须能够在严格的等同字符基础上进行区分。

It seems that ß=ss in SQL. I need to be able to distinguish on a strict charcter equivalent basis.

SELECT *从表中的名称类似'%ß%'

收益

BrianBruß
Steven Sossmix

等。

我查看了不同的排序规则,以查看是否有忽略字符扩展的文件,但到目前为止没有运气。

I've looked at different Collations to see if there is one that ignores character expansions, but no luck so far.

数据库的默认为Latin1_General_CI_AS -我也尝试过 Latin1_General_CS_AS Latin1_General_CS_AS_WS 都没有用

Database has Latin1_General_CI_AS as default - I've also tried Latin1_General_CS_AS and Latin1_General_CS_AS_WS, neither of which worked.

任何帮助将不胜感激。

推荐答案

您需要使用二进制排序规则以便区分大小写,区分重音等。

You need to use a binary collation so that it's case-sensitive, accent-sensitive, etc.

整理: SQL_Latin1_General_Cp437_BIN

这篇关于区分ß和ss的SQL查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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