这是我把存储过程中的一部分来贴上去的。
有#temp表:col1,col2 和abc表:col1,col2,col3其中有#temp.col1=abc.col1
select #temp.col1,#temp.col2,abc.col2,abc.col3 from #temp inner join abc on #temp.col1=abc.col1
出现无法解决 equal to 操作的排序规则冲突。
有#temp表:col1,col2 和abc表:col1,col2,col3其中有#temp.col1=abc.col1
select #temp.col1,#temp.col2,abc.col2,abc.col3 from #temp inner join abc on #temp.col1=abc.col1
出现无法解决 equal to 操作的排序规则冲突。
where a.cpbh=@str_cpbh and a.wl_id collate Chinese_PRC_CI_AS= b.sz_wldelete from bj_cpjg_jg_fl where cpbh=@str_cpbh and wl_id collate Chinese_PRC_CI_AS= (select sz_wl from #sz_temp where sz_wl like 'E%' )
NAME VARCHAR(10) COLLATE database_default --或者创建临时表的时候指定与当前数据库一致的排序规则
)--或者手工指定与当前查询使用的表中的对应列一致的排序规则