为什么SQL Server中的某些表情符号相等? [英] Why some emojis in SQL Server are equal?

查看:146
本文介绍了为什么SQL Server中的某些表情符号相等?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用SQL Server 2016并拥有一个使用Arabic_100_CI_AS的数据库,并且我在数据库中插入了苹果表情符号,但某些表情符号在条件上是相同的,但其他表情符号不相等

I using SQL Server 2016 and have one database with Arabic_100_CI_AS and I inserted apple emojis to my database but some of emojis are equals in condtions but other emojis are not equal

select 1
where N'⛑' = N'✅'

select 1
where N'✊' = N'⭐️'

此表情符号等于:




⭐️

⛅️

⛄️
⚽️
⚾️
⛳️


⛹️
⛵️
b
⛽️
⛲️



⛪️









⭕️
⛔️
❗️







b









b


⬛️
⬜️

✊ ✋ ⛑ ⭐️ ✨ ⛅️ ⛈ ⛄️ ⚽️ ⚾️ ⛳️ ⛸ ⛷ ⛹️ ⛵️ ⛴ ⛽️ ⛲️ ⛱ ⛰ ⛺ ⛪️ ⛩ ⏱ ⏲ ⏰ ⏳ ⛏ ⛓ ⛎ ❌ ⭕️ ⛔️ ❗️ ❕ ❓ ❔ ✅ ❎ ⏸ ⏯ ⏹ ⏺ ⏭ ⏮ ⏩ ⏪ ⏫ ⏬ ➕ ➖ ➗ ➰ ➿ ⬛️ ⬜️

推荐答案

马丁·史密斯先生建议尝试在阿拉伯语,二进制排序

As Mr. Martin Smith suggest try to collate them with help of Arabic, binary sort

select 1
where N'⛑' = N'✅' collate Arabic_BIN

select 1
where N'✊' = N'⭐️' collate Arabic_BIN

要回答您的问题:
表情符号的相等性取决于排序规则。

To answer your question : The equality of your emojis are dependent on collation.

这篇关于为什么SQL Server中的某些表情符号相等?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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