Lecture Database design, application development and administration - Chapter 11: Stored procedures and triggers

Chapter 11 - Stored procedures and triggers. This chapter augments your database application development skills with stored procedures and triggers. Stored procedures provide reuse of common code, while triggers provide rule processing for common tasks. Together, stored procedures and triggers support customization of database applications and improved productivity in developing database applications. | Chapter 11 Stored Procedures and Triggers Welcome to Chapter 11 on stored procedures and triggers Stored procedures and triggers are important to application development: - Customization of database applications - Reuse of code - Rule processing - Management of stored procedures and triggers by the DBMS Assumptions of reader Computer programming background to cover the entire chapter Broad treatment: skip programming examples and concentrate on conceptual issues Trigger coding mostly involves SQL statements so programming background is not essential Objectives: - Explain the reasons for writing stored procedures and triggers - Understand the design issues for database programming languages - Write PL/SQL procedures and triggers - Understand trigger classification - Understand trigger execution models Outline Database programming language background Stored procedures Triggers Database programming language background: - Motivation - Design issues - PL/SQL background Stored procedures: - PL/SQL procedures - PL/SQL functions - Cursors - PL/SQL packages Triggers: - Motivation - Classification - Trigger examples - Trigger execution models Motivation for Database Programming Languages A procedural language with an interface to one or more DBMSs. Interface allows a program to combine procedural statements with nonprocedural database access. Customization Batch processing Complex operations Efficiency and portability Customization is necessary because no tool provides a complete solution for the development of complex database applications. To support customized code, most database application development tools use event-driven coding. In this coding style, an event triggers the execution of a procedure. Despite the growth of online database processing, batch processing continues to be an important way to process database work. Application development for batch processing involves writing computer programs in a database programming language. Nonprocedural database access by | Chapter 11 Stored Procedures and Triggers Welcome to Chapter 11 on stored procedures and triggers Stored procedures and triggers are important to application development: - Customization of database applications - Reuse of code - Rule processing - Management of stored procedures and triggers by the DBMS Assumptions of reader Computer programming background to cover the entire chapter Broad treatment: skip programming examples and concentrate on conceptual issues Trigger coding mostly involves SQL statements so programming background is not essential Objectives: - Explain the reasons for writing stored procedures and triggers - Understand the design issues for database programming languages - Write PL/SQL procedures and triggers - Understand trigger classification - Understand trigger execution models Outline Database programming language background Stored procedures Triggers Database programming language background: - Motivation - Design issues - PL/SQL background Stored procedures: -

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.