解決无法解决 equal to 操作的排序规则冲突 問題

来源:互联网 发布:qq群淘宝领优惠券骗局 编辑:程序博客网 时间:2024/05/22 15:16

问题:在创建存储过程时 出现 “无法解决 equal to 操作的排序规则冲突 ”

解决方法:

1。WHERE   列名   collate   Chinese_PRC_CI_AS(强制指定排序规则)

如:

select       *   from       test   where       name   collate   chinese_prc_ci_as   in   (select   name1   chinese_prc_ci_as   from   test1)

2。如果涉及到多表查询,则在on后面加上 collate   Chinese_PRC_CI_AS(强制指定排序规则)

如:

selectfrom    test1 1join     test2 2on    1.id=2.id  collate Chinese_PRC_CI_AS
原创粉丝点击