如何乘以数据表 [英] How to multiply data tables

查看:59
本文介绍了如何乘以数据表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

假设我们有两个结构和行数相同的数据表。

所有字段都是数字。

我想创建一个第三个数据表并用datatable1 * datatable2填充它,而不是逐个遍历所有的行和列。



是否有提供此选项的数据表功能?



感谢您的帮助。

Hi all,
let's say we have two data tables of the same structure and number of rows.
All fields are numeric.
I would like to create a 3rd data table and fill it with datatable1 * datatable2 without iterating through all the rows and columns one by one.

Is there any datatable functionality providing this option?

Thanks for your help.

推荐答案

否,没有任何内置功能可以将数据表相乘。



但是,根据您的基础数据源,这不应该只是从数据源中选择两组数据并将它们相乘例如,在SQL的select语句中。



如果你告诉我们你从哪里获得数据,我们可能会有所帮助,这似乎是更好的事情进一步解决了代码链......
No, there is nothing built-in that will multiply data tables together.

However, depending on your underlying data source, this shouldn't be too big of a deal to just select both sets of data from the data source and multiply them together in the select statement of SQL for example.

If you tell us where you are getting the data from, we can probably help, this seems like it would be something better solved further up the code chain...


这篇关于如何乘以数据表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆