http://www.perlmonks.org?node_id=609213


in reply to Re: Multiple data sets in MySQL stored procedures
in thread Multiple data sets in MySQL stored procedures

There are situations where a stored proc that returns multiple result sets makes a lot of sense.

Then there is the Sybase way, where not only stored procs, but normal SQL batches including lots of requests can be sent to the dataserver with one single request, followed by a simple loop to fetch the results.

This makes client-side programming elegant, as I can throw a Transact-SQL block with IF and WHILE clauses at the server and not have to add any special code to handle it.

Michael

  • Comment on Re^2: Multiple data sets in MySQL stored procedures