Yes, you can do the same thing with DBI. It would be even better...
The easy way ist to slurp the sql-commands-file and directly submit it to $dbh->prepare( $commands )->execute
Mor advanced would be to parse the SQL beforehand and submit the queries one after the other. In fact, you only have to split on semicolon, except semicolons in quotes.
--
http://fruiture.de
|