PL/SQL Coding Guidelines - Part 1
-
Upload
larry-nung -
Category
Technology
-
view
249 -
download
5
Transcript of PL/SQL Coding Guidelines - Part 1
PL/SQL & SQL CODING GUIDELINES – PART 1Larry Nung
AGENDALanguage UsageReferenceQ & A
2
LANGUAGE USAGEGeneral
1. TRY TO LABEL YOUR SUB BLOCKS
2. ALWAYS HAVE A MATCHING LOOP OR BLOCK LABEL
3. AVOID DEFINING VARIABLES THAT ARE NOT USED
4. AVOID DEAD CODE IN YOUR PROGRAMS
5. AVOID USING LITERALS IN YOUR CODE
6. AVOID STORING ROWIDS OR UROWIDS IN A TABLE.
7. AVOID NESTING COMMENT BLOCKS
REFERENCE15
REFERENCE Trivadis PL/SQL & SQL Coding Guidelines
Version 2.0 http://
www.trivadis.com/sites/default/files/downloads/PLSQL_and_SQL_Coding_Guidelines_2_0_HiRes.pdf
ORACLE-BASE - ROWIDs for PL/SQL Performance https://
oracle-base.com/articles/misc/rowids-for-plsql-performance
Pseudo Columns and Oracle ROWID | AZ SQL Certification http://azsqlcertification.com/sql-tutorial/select-st
atement-reporting-capabilities/pseudo-columns-and-oracle-rowid/
16
Q&A17
QUESTION & ANSWER
18