database:oracle:plsql-naming-conventions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| database:oracle:plsql-naming-conventions [2023/09/08 17:36] – removed - external edit (Unknown date) 127.0.0.1 | database:oracle:plsql-naming-conventions [2025/01/02 18:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Oracle PL/SQL Naming Conventions ====== | ||
| + | |||
| + | - **Variables**: | ||
| + | * Local: prefix with '' | ||
| + | * Global: prefix with '' | ||
| + | - **Parameters**: | ||
| + | * Prefix with '' | ||
| + | - **Cursors**: | ||
| + | * Prefix with '' | ||
| + | - **Constants**: | ||
| + | * Prefix with '' | ||
| + | * Uppercase for constants (e.g., '' | ||
| + | - **Types**: | ||
| + | * Prefix with '' | ||
| + | - **Exception**: | ||
| + | * Prefix with '' | ||
| + | - **Records**: | ||
| + | * Suffix with '' | ||
| + | - **Arrays/ | ||
| + | * Suffix with '' | ||
| + | - **Procedures/ | ||
| + | * Procedures: use verbs (e.g., '' | ||
| + | * Functions: names reflecting return value (e.g., '' | ||
| + | - **Boolean variables**: | ||
| + | * Prefix with '' | ||
| + | - **Tables/ | ||
| + | * Tables: use plural names (e.g., '' | ||
| + | * Views: prefix with '' | ||
| + | - **Indexes**: | ||
| + | * Prefix with '' | ||
| + | - **Triggers**: | ||
| + | * Reflect timing and event (e.g., '' | ||
| + | - **Packages**: | ||
| + | * Name based on functionality (e.g., '' | ||
| + | |||
| + | **Note:** The key to effective naming is consistency. Always apply your chosen conventions uniformly. | ||
