Hello ,
maybe some mySQL guru can easily help me.
I got a table with Blob field (pdf documet) and I want to copy it as pdf file into a directory . Everybody don’t suggest to use images directly into a blob becouse it slows down db performance.
I did find googling the command to dump a record but I need to do it for all records once.
Can you help me to run it against all table records without specify manually every id ? Thanks
Select id, blob into dumpfile ‘C:\Users\Asus\Downloads\14_FILE.pdf’ from table where id = ‘14’;
Something like ‘C:\Users\Asus\Downloads\’. @var_id . ‘FILE.pdf’ … where id = @var_id