开发者

Language independent logic question

开发者 https://www.devze.com 2022-12-29 02:44 出处:网络
If one has three fields in a db that they are querying an object by.... One开发者_StackOverflow of these fields must always be an associations id.

If one has three fields in a db that they are querying an object by.... One开发者_StackOverflow of these fields must always be an associations 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.

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 ;-(


I read this as meaning that the original search specified the condition that one field had to be assoc, plus 2 more conditions for the remaining two fields, but selection can be made if only one of these two (plus the assoc one) are true.


Well, I would read it as "one of the other two fields must match the search criterion". Beyond that, I would need more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号