简体   繁体   English

语言独立逻辑问题

[英]Language independent logic question

If one has three fields in a db that they are querying an object by.... One of these fields must always be an associations id. 如果一个数据库中有三个字段用来查询对象...。这些字段之一必须始终是关联ID。 Concerning the other two fields "only one needs to be true" 关于其他两个字段,“只需要一个字段为真”

What interpretation do you take or make of "only one needs to be true"? 您对“只有一个需要真实”有什么解释?

I'd read that as OR , only one needs to be true, but I won't object if the other is too. 我将其读为OR ,只有一个需要为真,但如果另一个也为真,我不会反对。

If I meant EXCLUSIVE OR I would say "exactly one must be true". 如果我的意思是排他性的话,或者我会说“确切地说必须是真实的”。

However, the only way to be sure what was intended is to ask the author, who may well surprise you by telling you about yet a further condition ;-( 但是,确定意图的唯一方法是询问作者,他可能会通过进一步告知您进一步使您感到惊讶;-(

我将其理解为意思是,原始搜索指定了一个字段必须为assoc的条件,再加上其余两个字段的2个条件,但是如果这两个字段之一(加上assoc字段)为真,则可以进行选择。

Well, I would read it as "one of the other two fields must match the search criterion". 好吧,我将其理解为“其他两个字段之一必须与搜索条件匹配”。 Beyond that, I would need more information. 除此之外,我还需要更多信息。

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

相关问题 所有的空白角色? 它是语言独立的吗? - All the Whitespace Characters? Is it language independent? 独立于编程语言的随机数发生器 - programming language independent random number generator 语言不可知基本编程问题 - Language Agnostic Basic Programming Question 与语言无关的教程或关于网络应用的书籍 - Language-independent tutorial or book on web-apps 学习Lambdas / Closures的最佳语言独立来源是什么? - What is the best language independent source to learn Lambdas/Closures? osx特立独行的键盘扫描码映射到相同的字符,而与语言映射无关 - osx mavericks keyboard scancodes map to the same characters independent of language map Map键和值之间的符号是否存在与语言无关的名称? - Is there a language-independent name for the symbol between a Map key and value? 语言评估问题:渴望比较 懒 - Language Evaluation question: Eager Vs. Lazy 元语言以与语言无关的方式描述“ C-API”的类型 - Meta-language to describe types in a language-independent way for a “C-API” 以独立于语言的二进制格式序列化数据的最佳方法是什么? - What's the best way to serialize data in a language-independent binary format?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM