Book description
Nearly a quarter-million PL/SQL programmers--novices and experienced developers alike--have found the first and second editions of Oracle PL/SQL Programming to be indispensable references to this powerful language. Packed with examples and recommendations, this book has helped everyone, from Oracle Forms developers to database administrators, make the most of PL/SQL. This new edition is a comprehensive update of the original book, covering all versions of PL/SQL through Oracle9i Release 2. It adds much-requested new chapters on how to create and run PL/SQL programs, call Java methods from within PL/SQL, and define and use database triggers. An extensive new chapter--designed especially for experienced PL/SQL developers--describes PL/SQL's runtime architecture and how to use knowledge of Oracle internals to get the best performance from PL/SQL. The book contains information about the latest Oracle9i PL/SQL features, including:
Record-based DML: You can now use records in INSERT and DELETE statements.
Table functions: These are functions that return a result set (in the form of a PL/SQL collection). Such functions existed in Oracle8i but they are now much expanded.
New and improved datatypes: Oracle now offers dramatically improved support for timestamps, time zone management, and interval calculations. In addition, the XMLType datatype has now been implemented.
Inheritance for object types: You can now define a hierarchy of object types (which were first introduced in Oracle8).
Enhancements to PL/SQL collections. PL/SQL now supports multiple-level collections (nesting collections within collections), as well as associative arrays (previously called index-by tables), which allow you to index by PLS_INTEGER and VARCHAR2.
Native compilation of PL/SQL code: PL/SQL source code can now optionally be compiled into native object code that is linked into Oracle.
Part I, Programming in PL/SQL
Part II, PL/SQL Program Structure
Part III, PL/SQL Program Data
Part IV, SQL in PL/SQL
Part V, PL/SQL Application Construction
Part VI, Advanced PL/SQL Topics
The book is divided into six parts:
Even if you've been a PL/SQL developer for years, you'll find an enormous amount of new and revised information in this third edition and on its companion web site. If you're new to PL/SQL, you'll find Oracle PL/SQL Programming an invaluable companion on the road to mastery.
Publisher resources
Table of contents
-
Oracle PL/SQL Programming, 3rd Edition
- Preface
-
I. Programming in PL/SQL
- 1. Introduction to PL/SQL
-
2. Creating and Running PL/SQL Code
- SQL*Plus
- Performing Essential PL/SQL Tasks
- Oracle’s PL/SQL-Based Developer Tools
- Calling PL/SQL from Other Languages
- And What Else?
- 3. Language Fundamentals
-
II. PL/SQL Program Structure
- 4. Conditional and Sequential Control
- 5. Iterative Processing with Loops
- 6. Exception Handlers
-
III. PL/SQL Program Data
- 7. Working with Program Data
-
8. Strings
- The Impact of Character Sets
- String Datatypes
- String Issues
-
String Functions
- ASCII
- ASCIISTR
- CHR
- COMPOSE
- CONCAT
- DECOMPOSE
- GREATEST
- INITCAP
- INSTR, INSTRB, INSTRC, INSTR2, and INSTR4
- LEAST
- LENGTH, LENGTHB, LENGTHC, LENGTH2, and LENGTH4
- LOWER
- LPAD
- LTRIM
- REPLACE
- RPAD
- RTRIM
- SOUNDEX
- SUBSTR, SUBSTRB, SUBSTRC, SUBSTR2, and SUBSTR4
- TO_CHAR
- TO_MULTI_BYTE
- TO_SINGLE_BYTE
- TRANSLATE
- TRANSLATE...USING
- TRIM
- UNISTR
- UPPER
- NLS Functions
- 9. Numbers
- 10. Dates and Timestamps
-
11. Records and Collections
- Records in PL/SQL
- Collections in PL/SQL
- Declaring Collection Types and Collections
- Where Collections Can Be Used
- Collection Built-Ins (Methods)
-
Working with Collections
- Initializing Collection Variables
- Assigning Values to Elements
- Referencing an Undefined Row
- Working with Collections of Composites
- Sequential and Nonsequential Associative Arrays
- Passing Associative Arrays as Parameters
- PL/SQL-to-Server Integration
- Using VARCHAR2 Associative Arrays
- Emulating Alternative Indexes in Collections
- Collection Pseudo-Functions
- Maintaining Collections
- Choosing a Collection Type
-
12. Miscellaneous Datatypes
- The BOOLEAN Datatype
- The RAW Datatype
- The UROWID and ROWID Datatypes
- The LOB Datatypes
- Working with LOBs
- Predefined Object Types
-
IV. SQL in PL/SQL
-
13. DML and Transaction Management
- DML in PL/SQL
- Bulk DML with the FORALL Statement
- Transaction Management
- Autonomous Transactions
-
14. Data Retrieval
- Cursor Basics
- Working with Implicit Cursors
- Working with Explicit Cursors
- BULK COLLECT
- SELECT...FOR UPDATE
- Cursor Variables
- Cursor Expressions (Oracle9i)
- 15. Dynamic SQL and Dynamic PL/SQL
-
13. DML and Transaction Management
-
V. PL/SQL Application Construction
- 16. Procedures, Functions,and Parameters
- 17. Packages
- 18. Triggers
- 19. Managing PL/SQL Applications
-
VI. Advanced PL/SQL Topics
- 20. PL/SQL’s Runtime Architecture
-
21. Object-Oriented Aspects of PL/SQL
- Introduction to Oracle’s Object Features
- An Extended Example
- Object Views
- Maintaining Object Types and Object Views
- Pontifications
- 22. Calling Java from PL/SQL
- 23. External Procedures
- Index
- Colophon
Product information
- Title: Oracle PL/SQL Programming, Third Edition
- Author(s):
- Release date: September 2002
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596003814
You might also like
book
Oracle PL/SQL Programming, 5th Edition
This book is the definitive reference on PL/SQL, considered throughout the database community to be the …
video
Oracle PL/SQL
In this training course by Lewis Cunningham on Oracle PL/SQL Programming, you will learn how to …
book
Oracle PL/SQL by Example, 6th Edition
Using PL/SQL for Oracle Database 21c, you can build solutions that deliver unprecedented performance and efficiency …
book
Advanced Oracle PL/SQL Developer's Guide - Second Edition
Master the advanced concepts of PL/SQL for professional-level certification and learn the new capabilities of Oracle …