-
Notifications
You must be signed in to change notification settings - Fork 13
PL SQL Vertical Spacing Best Practices Standards
Tako Lee edited this page Feb 21, 2014
·
10 revisions
Vertical spacing helps distance elements in the code from one another, reducing the visual clutter above and below statements. To create appropriate vertical spacing for your code, place a blank line in the locations described in the following list:
-
Before lines containing the keywords IF, ELSE, ELSIF, and EXCEPTION. If the line is preceded by a comment, place the blank line before the comment instead of before the line of text.
-- -- If the student's grade point average meets the criteria for -- mandatory academic counseling, add the student's name and social -- security number to the list. -- IF (nRealGPA < 1.5) THEN <statements> -- -- We also want to consider students who are failing two or more -- classes, even if their GPA is above 1.5. -- ELSIF Has_Two_Fails (nForSSN => nSSN) THEN <statements> ELSE <statements> END IF;