作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
I am getting the following error
Cannot resolve the collation conflict between "Latin1_General_BIN" and "Latin1_General_CI_AS" in the equal to operation.
SELECT @PARTS = SUM(Llines_1.[qty]) from pick
RIGHT OUTER JOIN op AS Llines_1 ON pick.picknote =
Llines_1.[order_no] WHERE (pick.batchid = @batchid) AND (product = @product)
group by product Order By product
SELECT @PARTS = SUM(Llines_1.[qty]) COLLATE SQL_Latin1_General_CP1_CI_AS
from pick RIGHT OUTER JOIN op AS Llines_1 ON pick.picknote = Llines_1.
[order_no] WHERE (pick.batchid = @batchid)
AND (product = @product) group by product Order By product
最佳答案
我假设 picknote
的排序规则和 order_no
是不同的
尝试这个:
SELECT @PARTS = SUM(Llines_1.[qty])
from pick
RIGHT OUTER JOIN op AS Llines_1 ON pick.picknote = Llines_1.[order_no] COLLATE SQL_Latin1_General_CP1_CI_AS
WHERE (pick.batchid = @batchid)
AND (product = @product) group by product Order By product
关于sql - 无法解决 equal to 操作中 "Latin1_General_BIN"和 "Latin1_General_CI_AS"之间的排序规则冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44695927/
我是一名优秀的程序员,十分优秀!