I have to pull files stored in binary format from a MySQL database. There are thousands of files, so this needs to be done dynamically. Table structure looks like this:
__________________________________________
| Filename | Content |
------------------------------------------
| file1.pdf | dasdsod1i9j09wej9nd... |
| file2.pdf | )(!)J(Jdjw19ddjw9d\00... |
| picture1.jpg| djw10dj0))!)JDFH*(#@NF...|
------------------------------------------
I know you can SELECT Content INTO DUMPFILE...
but you can only do that when you select a single row. Is there a quick, easy way to do this to multiple rows?
Example of what I want: SELECT Content INTO DUMPFILE Filename
, so it just takes the Content column, and dumps it into a file.