为什么SQL Server中的某些表情符号相等? [英] Why some emojis in SQL Server are equal?
问题描述
我使用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屋!