How to make a condition with logical OR in SQL (MySQL), so that the sub-conditions would be carried out on an as-needed basis ?
For example:
SELECT * FROM \`mytable\` WHERE (\`a\` || \`b\` || \`c\`)
`a` is FALSE
`b` is TRUE
`c` is FALSE or TRUE
I want to MySQL:
1) get `a` // ok, `a` is FALSE
2) if (`a` IS TRUE) break // no break
3) get `b` // ok, `b` is TRUE
4) if (`b` IS TRUE) break; // ok, break