Skip to main content

Only "<>" should be used to test inequality

ZPA rule for PL/SQL and Oracle SQL · InequalityUsage

The forms "<>", "!=", "~=" and "^=" are equivalent, but only the "<>" form is defined in ANSI SQL.

Examples​

Noncompliant Code Example
if a != b then
Compliant Solution
if a <> b then