参考了解决办法: Cannot resolve the collation conflict between "Japanese_CI_AS" and "SQL_...
select * from #PlanLineLoadingA m where exists (select t.Prefix from #Vw_EXTERNAL_MT_Pattern t where Comp_Code='VN' and m.Prefix=t.Prefix )
报错
加了 COLLATE database_default 就可以了
select * from #PlanLineLoadingA m where exists (select t.Prefix from #Vw_EXTERNAL_MT_Pattern t where Comp_Code='VN' and m.Prefix=t.Prefix COLLATE database_default )
本文介绍了一种在SQL查询中解决Collation冲突的方法,通过使用COLLATE database_default解决了因不同字符集设置导致的错误,确保了跨表查询的顺利进行。
2000

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



