Sorry for the intrusion... EasySQL is a meta-language for MySQL that provides a more sophisticated environment for pure-SQL coding than MySQL provides on its own, eliminating the need for external languages such as Perl in many instances.
The first version of EasySQL features iteration across result sets (executing a set of queries for each result row), the ability to connect to multiple MySQL instances from one .esql script, and the ability to issue any query against one or more connections. EasySQL is extremely simple to install and to use, and is distributed under the GPL. http://www.mrjoy.com/easysql/ -JF