MYSQL won't overwrite an existing OUTFILE.
How can I programmatically delete the OUTFILE?
Is there a way to make the SELECT...OUTFILE overwrite the OUTFILE?
Regards scooper
According to the MySQL online manual (the 'SELECT Syntax' section):
"[The output file] cannot be an existing file, which among other things
prevents files such as /etc/passwd and database tables from being
destroyed."
Whenever I have needed to delete the output file, I've used something other
than MySQL to do it (e.g. PHP). I've assumed that as it's a deliberate
decision not to allow the delete/overwrite in MySQL, there'll be no way
around it other than using something else to do any file deletes you need.
A.