简体   繁体   English

MS ACCESS .NET - 如何在不使用Modulo的情况下获得其余部门?

[英]MS ACCESS .NET - Any way to get the remainder of a division without using Modulo?

正如标题所示,我必须在SQL查询中获得除法的其余部分,但问题是MS Access .NET Framework无法识别模数,因此我无法使用它。

I managed to work around the warnings being thrown by .NET by generating the query's columns in my DataSet then putting the query with the Mod in it. 我设法通过在我的DataSet中生成查询列然后将带有Mod的查询放入其中来解决.NET抛出的警告。 This way the columns are properly filled. 这样就可以正确填充列。 ASP.NET was not letting me generate the columns due to the Mod in the query but removing it then putting it back allowed me to work around it. 由于查询中的Mod,ASP.NET不允许我生成列,但删除它然后将其放回允许我解决它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM