I'm pretty confident this is possible. What I want to do:
Run a select query --> Send query results to .SQL file for later use
Currently, i can use
Code:
select * from `characters` into outfile "D:\Dump.sql"
Which *almost* does what I want it to do. Unfortunately, it fails to format the dump file in SQL, and thus rather than making its contents
Code:
INSERT INTO `characters` (column1, column2, ...) VALUES (row1, row2, ...);
It just makes its contents the values with tabs inbetween e.g.
Code:
4 1 2 10000 500 465 8460 4,41,85,485 Frizire 6
So my question is:
How can I do something similar to a database dump, except only for a specific query, where I can re-execute the query from the file at a later date?