in reply to Using an External SQL Query file?
I agree with samtregar. Cheat. Use the mysql binary to open and load the files so that you don't have to bother with SQL parsing and/or tokenizing.