Part 2 of MySQL Stored Procedures covers some more advanced concepts, including conditions and loops.

This story continues at http://www.databasejournal.com/featu...le.php/3547931