I'm relatively new to MySQL stored procs, so I was hoping someone could help me out here. I want to call my stored proc (maybe pass in one IN
param) and have it do the following:
SELECT
some dataINSERT
s in other tables based on the data it finds.My problem is that I don't know how to store the SELECT
data set and iterate the records. I know how to declare
and set
stuff like int
and text
, but not full data sets. How do I do this?
Thanks
Look into MySql Cursors
http://dev.mysql.com/doc/refman/5.0/en/cursors.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With