2015-09-04 38 views
0

t sql與AS和AI的區別是什麼? 有沒有人有每個分類字符的列表?t sql與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 

回答

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

0

AI/AS之間的整理差異是強調敏感(AS)和強調不敏感(AI)。

而CI/CS表示不區分大小寫(CI)和區分大小寫(CS)。

相關問題