Learn how to write powerful and flexible PL/SQL programs.
Gain hands-on experience with Oracle's PL/SQL programming language, with expert assistance from an IT veteran. PL/SQL is Oracle's procedural language extension to Structured Query Language (SQL).
This course will give you the skills you need to write powerful and flexible programs using that language. You'll learn the building blocks and core features of PL/SQL, including expressions, various iterations, and built-in functions. Then, you'll begin building fully functional PL/SQL programs with procedures, packages, debugging routines, database structures, triggers, and cursor processing. By the time you finish this course, you will be able to store PL/SQL programs in a database and execute them.
- This course can be taken on either a PC or Mac.
- PC: Windows 8 or newer.
- Mac: OS X Snow Leopard 10.6 or later.
- Browser: The latest version of Google Chrome or Mozilla Firefox are preferred. Microsoft Edge and Safari are also compatible.
- Oracle's Database Software. The Database Software is available for downloading from Oracle's website (www.oracle.com). Download the Oracle Database that supports your operating system. This course provides post-installation instruction on Oracle. Installation support will not be provided in the course. Installation support is provided from Oracle's website.
- Adobe Acrobat Reader. Click here to download the Acrobat Reader.
- Software must be installed and fully operational before the course begins.
Gain hands-on experience with Oracle's PL/SQL programming language with expert assistance from an IT veteran. This course will give you the skills you need to write, build, debug, and execute fully functional PL/SQL programs in a database.
- Email capabilities and access to a personal email account.
1. Introduction to PL/SQL
In the first lesson, you'll master the basics of PL/SQL and discover how you can best get started using this powerful language. You'll also learn the differences between SQL, SQL*Plus, and PL/SQL.
2. Datatypes and Block Structure
The block is the basic unit of PL/SQL programming. In this lesson, you'll learn and understand the various datatypes available to you when declaring variables. You'll also explore the PL/SQL's block structure, its use, and its impact on the scope of variable declarations.
3. Operators, Expressions, and Datatype Conversions
In this lesson, you're going to learn how to use operators to manipulate variables. You'll build simple expressions that compute two values, as well as complex expressions that consist of function calls, operations using variables, and relational comparisons. You'll also learn about datatype conversions for expressions that contain operands of multiple datatypes.
4. PL/SQL Functions, IF Statements, and Looping Statements
In this lesson, you'll take a closer look at how to create your own functions. The two main reasons for writing functions are the reduction of code and their ease of use. You'll learn how to code PL/SQL functions, how to define parameters in the functions, and how to store them. The lesson will also show you how to control the execution of PL/SQL blocks using the IF and looping statements. Then, you'll explore the various IF statements and how they operate, and you'll gain experience working with a simple loop.
5. GOTO Statement, Statement Labels, and Loop Constructs
In this lesson, you'll begin to master more methods for changing the order of execution of PL/SQL blocks. You'll explore statement labels, the GOTO statement, and the different kinds of loops. You'll learn how to branch by using the GOTO statement followed by a statement label. After that, the lesson will discuss why the statement label must appear in the same block and within the same scope as the GOTO statement. Next, you'll look at control structures. You'll learn about the different kinds of loops and how they operate. Finally, you'll discover techniques for exiting loops and how to simulate a REPEAT...UNTIL loop.
6. Oracle's Built-In Functions
You'll look at a number of Oracle's built-in functions in this lesson, including string functions, number functions, date functions, and conversion functions.
7. Procedures and Packages
In this lesson, you'll focus on procedures and packages and how they allow you to organize your PL/SQL code into logical groups for uncomplicated maintenance and implementation.
8. Errors and Exceptions
Errors that occur from hardware or network failures, application logic errors, data integrity errors, and other sources are called exceptions. This lesson will introduce you to the concepts behind PL/SQL exception handling. It will explain the different types of exceptions and show you how to identify and handle errors in your code.
9. Types of SQL Statements, Declaring Variables in PL/SQL, and Transaction Management
Structured Query Language (SQL) is the industry standard for accessing data from relational databases. This lesson will address the connection to the underlying Oracle database through SQL (Structured Query Language). It will cover the usage of SQL's Data Manipulation Language (DML) commands within a PL/SQL block. Then you'll learn how to define DML transactions that insert, update, delete, and query the information.
10. Using Cursors
PL/SQL cursors provide a method for selecting multiple rows of data from the database and processing each row individually. You can use cursors for simple procedures and complex processing. This lesson will introduce you to cursors and how they may be used.
11. Database Triggers, Advanced Cursor Concepts, and Managing PL/SQL Code
In this lesson, you'll learn about triggers and experiment with implementing a few different types of functionality. The lesson will discuss advanced cursor concepts, which include the SELECT...FOR UPDATE statement, the WHERE CURRENT OF clause, and subqueries in cursors. Finally, you'll learn techniques to managing PL/SQL code.
12. Debugging Your Code
Although some may never admit to it, everyone makes mistakes, so you will inevitably make some coding errors. These errors are usually comprised of syntax and logic errors. The final lesson will demonstrate how to find these bugs and then how to reduce the number of coding mistakes you may encounter.