[英]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.