enum ComparisonOperator: string
Public API: explicitly declared with @visibility public.

The comparison operators of MySQL.

!= is the operator <>. <=> is the NULL-safe equality, which never yields NULL. Source: https://dev.mysql.com/doc/refman/8.4/en/comparison-operators.html.

Reading the operator of a comparisondoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t WHERE a != 1');
    $query->statement->where->operator // => \SqlSemantics\Platform\MySql\Statement\Expression\ComparisonOperator::NotEqual

Cases§

case Equal = '='
case NullSafeEqual = '<=>'
case NotEqual = '<>'
case Less = '<'
case LessOrEqual = '<='
case Greater = '>'
case GreaterOrEqual = '>='

Test cases 21§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 20

Relations§

Constant reads 9
Type declarations 3