MySQL export into outfile : CSV escaping chars
问题 I've a database table of timesheets with some common feilds. id, client_id, project_id, task_id, description, time, date There are more but thats the gist of it. I have an export running on that table to a CSV file overnight to give the user a backup of their data. It also is used as a data import for a macro Excel file with some custom reports. This all works with me looping through the timesheets with php and printing the lines to a file. The problem is with a big database it can take hours