[Solved] SELECT * FROM USERS where userid = (null or ”) is this t sql query valid or not?
The comparison userid = (null OR ”) is invalid. First, the very syntax is wrong: field = (value1 OR value2) should be put either as (field = value1) OR (field = value2) or as field IN (value1, value2) Second, null is a special value, which stands for unknown, doesn’t matter, unapplicable etc. and that’s why … Read more