Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 表格单元格中的多个bigint列和十进制列_Sql_Service_Reporting - Fatal编程技术网

Sql 表格单元格中的多个bigint列和十进制列

Sql 表格单元格中的多个bigint列和十进制列,sql,service,reporting,Sql,Service,Reporting,我在数据库中有一个bigint字段和一个decimal字段,我希望在reportingservices的tablecell中多个这些字段 我的代码如下: (Fields!dpr_unitprice.Value) * (Fields!dpr_PurchasedQuntity.Value) 但结果并不正确 如何获得正确的结果?可能是您的DB引擎返回了一个bigint 将bigint值转换为十进制,然后再将二者相乘。必须将两个字段转换为要使用的单位,因此如果要使用十进制,则: cdec((Field

我在数据库中有一个bigint字段和一个decimal字段,我希望在reportingservices的tablecell中多个这些字段

我的代码如下:

(Fields!dpr_unitprice.Value) * (Fields!dpr_PurchasedQuntity.Value)
但结果并不正确


如何获得正确的结果?

可能是您的DB引擎返回了一个bigint


将bigint值转换为十进制,然后再将二者相乘。

必须将两个字段转换为要使用的单位,因此如果要使用十进制,则:

cdec((Fields!dpr_unitprice.Value)) * (Fields!dpr_PurchasedQuntity.Value)

结果在什么方面是不正确的?我们是否必须猜测错误行为的每一种可能组合,并描述其发生的可能原因,以期在宇宙消失之前找到正确的组合?目前只有您能够看到结果,并且应该能够描述输入数据、期望的结果和实际结果。您期望得到什么结果以及您得到什么结果?