t sql collate与AS和AI有什么区别? 是否有人为每个人都有一个整理的字符列表?
select distinct s1.Field1, s2.Field2
from s1 inner join s2
on s1.Field1 collate Latin1_General_CI_AI = s2.Field2 collate Latin1_General_CI_AI
select distinct s1.Field1, s2.Field2
from s1 inner join s2
on s1.Field1 collate Latin1_General_CI_AS = s2.Field2 collate Latin1_General_CI_AS
答案 0 :(得分:1)
AI == accent-insensitive
AS == accent-sensitive
有关整理的信息:
Latin1_General_CI_AI Latin1-General, case-insensitive, accent-insensitive, kanatype-insensitive, width-insensitive
Latin1_General_CI_AS Latin1-General, case-insensitive, accent-sensitive, kanatype-insensitive, width-insensitive
有关所有整理的详细信息,请
SELECT name, description
FROM fn_helpcollations()
请参阅Doc
答案 1 :(得分:0)
AI / AS之间的整理差异是Accent Sensitive(AS)和Accent Insensitive(AI)。
CI / CS意味着不区分大小写(CI)和区分大小写(CS)。