PL/SQL Best Practices [6][Data Structures]-Naming Identifiers
Employ naming conventions throughout your applications. For example:
Standard prefixes or suffixes for cursor and record names, etc.
Avoid dozens of variations for the same identifier.
Even if in different programs, there is no reason to have different abbreviations and interpretations.
If the variable represents database information, incorporate the name of the database entity.
Take advantage of database standards as much as possible.
Do not, however, declare variables which have exactly the same name as a column. For example:
We suggest adding an identifier which ensures that although the column name is similar, the variable name is uniquely different. For example:
1
DECLARE
2
v_first_name TABLE.first_name%TYPE;
3
c_last_name CONSTANT TABLE.last_name%TYPE := 'Smith';
4

DECLARE2
v_first_name TABLE.first_name%TYPE;3
c_last_name CONSTANT TABLE.last_name%TYPE := 'Smith';4


It is important to use your variable naming conventions throughout all code.

浙公网安备 33010602011771号