Re: MDB2 and SQL script
| From: | Lukas Kahwe Smith | Date: | Mon, 20 Nov 2006 07:46:49 +0000 |
| Subject: | Re: MDB2 and SQL script | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25882@lists.php.net to get a copy of this message | ||
Tim Denby wrote:
Righto, and thanks to Paul Scott for the suggestion too. Both of these suggestions would allow me to execute multiple queries, but the real problem is parsing the file - stripping out the comments, figuring out how many lines go into a single CREATE TABLE statement, etc. Not too hard with a regex, so I'll be all set, I just figured that this would be a common-enough problem that there'd be an existing function for doing it.There is nothing in MDB2 for this .. not sure if the SQL_Parser package is upto snuff. regards, Lukas