sqlserver的排序

在操作数据库时发生错误:Cannot resolve the collation conflict between "Chinese_PRC_CI_AS" and "Chinese_PRC_CS_AS" in the equal to operation.

原因是用join连接时,其中一个表有区分大小写,另一个表没有区分。

Chinese_PRC_CS_AS表示区分了大小写

Chinese_PRC_CI_AS表示没有区分。

为了查询,可以在sql语句后加 collate Chinese_PRC_CS_AS,强制区分大小写。

原文地址:https://www.cnblogs.com/Benjamin/p/2864979.html