首页 > 技术文章 > XQuery使用sum求和,提示char不能转换为money解决方法

slmk 2017-02-04 17:56 原文

select axml.value('sum(/root/pro/price)','money')

以上代码提示‘char不能转换为money’的错误,发现值为'0.0E0'。改为:

select axml.value('sum(/root/pro/price)','float')

问题解决。

why?

推荐阅读