(collation)字符集排序不一,怎么行相等比啊?
如:我要找出A表B表中同一人其email不一的
select a.email,b.email from A表 a inner join B表 b on a.emp_no=b.empno
where a.email <> b.email
息 468, 16, 9,行 1
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS " and "Chinese_Taiwan_Stroke_CI_AS " in the not equal to operation.
查,原因:
A表字段email的collation是:Chinese_Taiwan_Stroke_CI_AS
A表字段email的collation是:SQL_Latin1_General_CP1_CI_AS
如何解啊?
重新建表一collation,就可以了。除此方法外,有其他方法?
B表是其他的,排序原不一。
所以不同建排序原最好一,要不就出上述等很多了。
[解决办法]
collate Chinese_PRC_CI_AS
加上这一句试试