KEMBAR78
Daftar
Login
PL/SQL Coding Guidelines - Part 2 | PPTX
Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Larry Nung
PPTX, PDF
296 views
PL/SQL Coding Guidelines - Part 2
PL/SQL Coding Guidelines - Part 2
Technology
◦
Related topics:
PL/SQL Overview
•
Read more
0
Save
Share
Embed
Download
Downloaded 16 times
1
/ 29
2
/ 29
3
/ 29
4
/ 29
5
/ 29
6
/ 29
7
/ 29
8
/ 29
9
/ 29
10
/ 29
11
/ 29
12
/ 29
13
/ 29
14
/ 29
15
/ 29
16
/ 29
17
/ 29
18
/ 29
19
/ 29
20
/ 29
21
/ 29
22
/ 29
23
/ 29
24
/ 29
25
/ 29
26
/ 29
27
/ 29
28
/ 29
29
/ 29
More Related Content
PDF
Ornithology_Leaflet_Highres
by
Matthew Hopkins
PPTX
Virus y antivirus.
by
ximenadltorre
PDF
Discoveries 2016 Mining Conference
by
Douglas Coleman
PDF
Kampot
by
lynda96
PPTX
Ple 2016
by
DIPLOMADO INNOVATIC META
PPTX
sikuli final
by
Mangesh Bhapkar
PDF
Introductions
by
jenwb
DOCX
Tahir
by
Tahir Kalyar
Ornithology_Leaflet_Highres
by
Matthew Hopkins
Virus y antivirus.
by
ximenadltorre
Discoveries 2016 Mining Conference
by
Douglas Coleman
Kampot
by
lynda96
Ple 2016
by
DIPLOMADO INNOVATIC META
sikuli final
by
Mangesh Bhapkar
Introductions
by
jenwb
Tahir
by
Tahir Kalyar
Viewers also liked
PPTX
Exposicion de la kinesiologia de la cara
by
stefany ojeda
PPTX
Ender’s Game Presentation
by
Timotheezy
PPTX
PL/SQL Coding Guidelines - Part 1
by
Larry Nung
PPTX
Topshelf - An easy service hosting framework for building Windows services us...
by
Larry Nung
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 4
by
Larry Nung
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 5
by
Larry Nung
PPTX
Oracle Database 12c Attack Vectors
by
Martin Toshev
DOCX
Electrical Engineering Interview Questions
by
ashiesh0007
Exposicion de la kinesiologia de la cara
by
stefany ojeda
Ender’s Game Presentation
by
Timotheezy
PL/SQL Coding Guidelines - Part 1
by
Larry Nung
Topshelf - An easy service hosting framework for building Windows services us...
by
Larry Nung
PL/SQL & SQL CODING GUIDELINES – Part 4
by
Larry Nung
PL/SQL & SQL CODING GUIDELINES – Part 5
by
Larry Nung
Oracle Database 12c Attack Vectors
by
Martin Toshev
Electrical Engineering Interview Questions
by
ashiesh0007
More from Larry Nung
PPTX
Ansible - simple it automation
by
Larry Nung
PPTX
sonarwhal - a linting tool for the web
by
Larry Nung
PPTX
LiteDB - A .NET NoSQL Document Store in a single data file
by
Larry Nung
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 8
by
Larry Nung
PPTX
MessagePack - An efficient binary serialization format
by
Larry Nung
PPTX
PL/SQL & SQL CODING GUIDELINES – Part 7
by
Larry Nung
PPTX
BenchmarkDotNet - Powerful .NET library for benchmarking
by
Larry Nung
PPTX
PLSQL Coding Guidelines - Part 6
by
Larry Nung
PPTX
SonarQube - The leading platform for Continuous Code Quality
by
Larry Nung
PPTX
Visual studio 2017
by
Larry Nung
PPTX
Web deploy command line
by
Larry Nung
PPTX
Web deploy
by
Larry Nung
PPTX
SikuliX
by
Larry Nung
PPTX
Common.logging
by
Larry Nung
PPTX
protobuf-net - Protocol Buffers library for idiomatic .NET
by
Larry Nung
PPTX
Regular expression
by
Larry Nung
PPTX
Fx.configuration
by
Larry Nung
PPTX
StackExchange.redis
by
Larry Nung
PPTX
Disruptor
by
Larry Nung
PPTX
GRUNT - The JavaScript Task Runner
by
Larry Nung
Ansible - simple it automation
by
Larry Nung
sonarwhal - a linting tool for the web
by
Larry Nung
LiteDB - A .NET NoSQL Document Store in a single data file
by
Larry Nung
PL/SQL & SQL CODING GUIDELINES – Part 8
by
Larry Nung
MessagePack - An efficient binary serialization format
by
Larry Nung
PL/SQL & SQL CODING GUIDELINES – Part 7
by
Larry Nung
BenchmarkDotNet - Powerful .NET library for benchmarking
by
Larry Nung
PLSQL Coding Guidelines - Part 6
by
Larry Nung
SonarQube - The leading platform for Continuous Code Quality
by
Larry Nung
Visual studio 2017
by
Larry Nung
Web deploy command line
by
Larry Nung
Web deploy
by
Larry Nung
SikuliX
by
Larry Nung
Common.logging
by
Larry Nung
protobuf-net - Protocol Buffers library for idiomatic .NET
by
Larry Nung
Regular expression
by
Larry Nung
Fx.configuration
by
Larry Nung
StackExchange.redis
by
Larry Nung
Disruptor
by
Larry Nung
GRUNT - The JavaScript Task Runner
by
Larry Nung
PL/SQL Coding Guidelines - Part 2
1.
PL/SQL & SQL CODING
GUIDELINES – PART 2 Larry Nung
2.
AGENDA Variables & Types Reference Q
& A 2
3.
VARIABLES & TYPES General
4.
8. TRY TO
USE ANCHORED DECLARATIONS FOR VARIABLES, CONSTANTS AND TYPES.
5.
BAD DECLARE v_empName VARCHAR2(10); BEGIN … END;
6.
GOOD DECLARE v_empName emp.ename%TYPE; BEGIN … END;
7.
9.TRY TO HAVE
A SINGLE LOCATION TO DEFINE YOUR TYPES.
8.
10. TRY TO
USE SUBTYPES FOR CONSTRUCTS USED OFTEN IN YOUR APPLICATION.
9.
BAD DECLARE v_str VARCHAR2(4000); BEGIN … END;
10.
GOOD CREATE OR REPLACE
PACKAGE PKG_SUBTYPE AS SUBTYPE STRING_MAX IS VARCHAR2(4000); END PKG_SUBTYPE; DECLARE v_str PKG_SUBTYPE.STRING_MAX; BEGIN ... END;
11.
11. NEVER INITIALIZE
VARIABLES WITH NULL.
12.
BAD DECLARE v_str VARCHAR2(30) :=
null; BEGIN ... END;
13.
GOOD DECLARE v_str VARCHAR2(30); BEGIN ... END;
14.
12. AVOID COMPARISONS
WITH NULL VALUE, CONSIDER USING IS [NOT] NULL.
15.
BAD DECLARE v_str VARCHAR2(30); BEGIN if v_str
= null then … end if; END;
16.
GOOD DECLARE v_str VARCHAR2(30); BEGIN if v_str
is null then … end if; END;
17.
13. AVOID INITIALIZING
VARIABLES USING FUNCTIONS IN THE DECLARATION SECTION.
18.
BAD DECLARE l_company_name VARCHAR2(30) := util_pck.get_company_name(in_id
=> 47); BEGIN … END;
19.
GOOD DECLARE v_str VARCHAR2(30); BEGIN <<init>> BEGIN v_str :=
util_pck.get_company_name(inId => 47); EXCEPTION WHEN VALUE_ERROR THEN ... END init; END;
20.
14. NEVER OVERLOAD
DATA STRUCTURE USAGES.
21.
BAD <<main>> DECLARE v_str VARCHAR2(30); BEGIN <<sub>> DECLARE v_str VARCHAR2(4000)
; BEGIN … END sub; END main;
22.
15. NEVER USE
QUOTED IDENTIFIERS.
23.
BAD <<main>> DECLARE "v_str" VARCHAR2(30) ; BEGIN … END
main;
24.
16. AVOID USING
OVERLY SHORT NAMES FOR DECLARED OR IMPLICITLY DECLARED IDENTIFIERS.
25.
17. AVOID THE
USE OF ROWID OR UROWID
26.
REFERENCE 26
27.
REFERENCE Trivadis PL/SQL
& SQL Coding Guidelines Version 2.0 http://www.trivadis.com/sites/default/files/downloads/PL SQL_and_SQL_Coding_Guidelines_2_0_HiRes.pdf 27
28.
Q&A 28
29.
QUESTION & ANSWER 29
Download