+ 4
When using the OR Clause in sql query, what Will happened if both condition is true?
4 Réponses
+ 1
in this case it will return True
+ 1
To understand it better, binary math is the solution
0 + 0 = 0 => false or false = false
0 + 1 = 1 => false or true = true
1 + 0 = 1 => true or false = true
1 + 1 = 1 => true or true = true
Best regards.
0
Its return true.
OR return false only when both conditions are false
0
OR operator returns true if any of the conditions seperated by OR is true!