SQL语句进行left join的时候发生以下错误:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI" in the equal to operation.
如
LEFT JOIN @table1 cpt on o.Part = cpt.ProductId COLLATE database_default
本文介绍了解决SQL左连接操作时出现的字符集冲突问题,通过使用database_default关键字来确保不同表间的字符串比较不会因字符集不一致而引发错误。
SQL语句进行left join的时候发生以下错误:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI" in the equal to operation.
649
1977
1万+

被折叠的 条评论
为什么被折叠?