PL/SQL Best Practices [8][Data Structures]-Avoid Hardcoding Literals
Avoid all forms of “magic values” in your applications, such as:
* Maximum number of accounts allowed.
The codes used for “closed”, opened”, etc.
Replace literal values (outside of 1, that is) with a named constant, preferably within a package.
Other forms of hard-coding in PL/SQL:
* Declaring a variable as VARCHAR2 even if it represents a database value.
* Implicit cursors (embedding SQL statements directly in your code).
* Explicit cursors which do not use parameters.
* Dispersion of redundant code.

浙公网安备 33010602011771号