報錯信息:
Cannot resolve the collation conflict between "Chinese_PRC_CI_AI_WS" and "Chinese_PRC_CI_AS" in the equal to operation.
解決方法:
1.強制指定用一種字符編碼來排序,在where條件語句中添加排序規則,如:COLLATE Chinese_PRC_CI_AI_WS
select id,cn
from tb_A
where cn COLLATE Chinese_PRC_CI_AI_WS in(select cn from tb_B);