11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.info• CONTENTSCreating a Stored Routine .................................................................................................................... 629Declaring and Setting Variables ........................................................................................................... 632Executing a Stored Routine .................................................................................................................. 633Creating and Using Multistatement Stored Routines............................................................................ 634Calling a Routine from Within Another Routine .................................................................................... 641Modifying a Stored Routine .................................................................................................................. 642Deleting a Stored Routine..................................................................................................................... 642Viewing a Routine’s Status................................................................................................................... 643Viewing a Routine’s Creation Syntax.................................................................................................... 644Handling Conditions.............................................................................................................................. 644Integrating Routines into Web Applications...................................................................645Creating the Employee Bonus Interface ............................................................................................... 645Retrieving Multiple Rows...................................................................................................................... 646Summary .......................................................................................................................647• Chapter 33: <strong>MySQL</strong> Triggers ...............................................................................649Introducing Triggers ......................................................................................................649Why Use Triggers?................................................................................................................................ 649Taking Action Before an Event ............................................................................................................. 650Taking Action After an Event ................................................................................................................ 650Before Triggers vs. After Triggers ........................................................................................................ 651<strong>MySQL</strong>’s Trigger Support...............................................................................................652Creating a Trigger................................................................................................................................. 652Viewing Existing Triggers ..................................................................................................................... 654Modifying a Trigger .............................................................................................................................. 656Deleting a Trigger................................................................................................................................. 656Integrating Triggers into Web Applications....................................................................657Summary .......................................................................................................................658xxv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!