我有一个 SQL 查询,它将数据库中的值与常量进行比较:
SELECT * FROM my_table
INNER JOIN #TempTable tem
ON my_table.id = temp.id
AND my_table.key = 'SOME STRING'
我得到了错误:
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
我怎样才能解决这个问题?(不更改数据库)
更新:即使我删除了最后一个类似(字符串比较),我也会收到此错误...