简体   繁体   English

MS Access 查询中的“无限”是什么意思

[英]What does 'infinite' mean in MS Access query

在此处输入图片说明 I am trying to re-make some Access queries using SSMS.我正在尝试使用 SSMS 重新进行一些 Access 查询。 I ran across the below statement and I am a bit confused.我遇到了下面的语句,我有点困惑。 it uses the term 'infinite' and I have never seen that in Access.它使用术语“无限”,而我从未在 Access 中看到过。 Any help?有什么帮助吗?

Code:代码:

Bal: IIf([Infinite]<1,0,[infinite])

It's referring to a field in the database named "Infinite" (or "infinite").它指的是数据库中名为“Infinite”(或“infinite”)的字段。

What it's trying to do is return 0 if [Infinite] is less than 1, and return the actual value if it's not less than 1.试图做的是如果 [Infinite] 小于 1,则返回 0,如果它不小于 1,则返回实际值。

However if your SQL Server is set to case sensitive collation, the statement will fail because Infinite <> infinite但是,如果您的 SQL Server 设置为区分大小写的排序规则,则该语句将失败,因为Infinite <> infinite

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

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