The inclusion of stored procedures in MySQL was a purely personal decision on my part. Originally, I considered using straight SQL; however, it has been several years since I created any kind of nontrivial application using anything but stored procedures. In addition, because the topic of stored procedures in MySQL is so new, trying to find examples is pretty much like looking for a unicorn. So I thought, why not include a few examples here? And as you've probably determined by now, I like examples.