Comparison Operators
Learn Comparison Operators (Operators, MySQL) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Introduction Comparison operators compare two values and yield 1 (true), 0 (false) or NULL (unknown): = <> (or !=) < <= > >= plus the NULL-safe equality <=> . MySQL has no separate boolean type for these results; they are integers 1, 0 or NULL.