Only "<>" should be used to test inequality
ZPA rule for PL/SQL and Oracle SQL · InequalityUsage
- Severity
- Major
- Category
- Convention
- Applies to
- Main and test code
- Default profile
- Active
- Tags
- obsolete
The forms "<>", "!=", "~=" and "^=" are equivalent, but only the "<>" form is defined in ANSI SQL.
Examples
Noncompliant Code ExampleCompliant Solution