为什么 SQL 服务器中的某些表情符号是相等的?

Why some emojis in SQL Server are equal?

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

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

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

这个表情符号等于:

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

先生 Martin Smith 建议尝试在 Arabic, binary sort

的帮助下整理它们
select 1
where N'⛑' = N'✅' collate Arabic_BIN

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

回答你的问题: 表情符号的平等取决于整理。