Originally posted by superwormy
...?
What does MySQL 5.0 have to do with a PHP limitation?
Also... why can't you just run more than one query?
mySQL5.0 should have support for stored proceedures, allowing hopefully mysql_query("EXECUTE sp_SQL_STATEMENTS");
I didn't want multiple queries, because I am intending to run the queries multiple times (thousands, possibly millions per hour) - also the reason for the inclusion of variables is that the actual statements are much more complicated than the example listed above and involve recursive data structures. A pure SQL script can perform as required on mySQL AND MS SQL Server.
The desired solution will now be implemented as a cron job and a WSH task - I thought it would be nice to integrate it with other PHP code - and still may, but using multiple queries (for step-by-step) executions.
Thank you to all for your feedback.