Skip to main content

Avoid using empty strings to represent NULL

ZPA rule for PL/SQL and Oracle SQL · EmptyStringAssignment

To improve the readability, avoid using empty strings to represent NULL.

Examples​

Noncompliant Code Example
var := '';
Compliant Solution
var := null;