Download presentation
Presentation is loading. Please wait.
1
Advanced PL/SQL Programing
2
Agenda Problem solving with If / loops How to handle errors
How to process SQL output row-by-row Create and Execute Stored Procedures
3
If / If…Else Guide to Oracle 10g
4
If…ElsIf…Else Guide to Oracle 10g
5
Loops Guide to Oracle 10g
6
Exceptions When an error occurs in your PL/SQL block execution can transfer to an exceptions area. This can be used to log data, raise errors, or rollback transactions. General Exception Block: Exception When others then raise; Guide to Oracle 10g
7
Exceptions Guide to Oracle 10g
8
Cursors Provide access into the individual rows of a select statement.
You can loop over the SQL output and execute code that will apply to each row. Guide to Oracle 10g
9
Cursors Guide to Oracle 10g
10
Stored Procedures Save your PL/SQL code under a name
234 Guide to Oracle 10g
11
Demo Time!!!! 1) Refactor Customer Lookup as SP.
2) Program to call 1) in loop handles exception.
12
Questions
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.