MySQL : retrieve a large select by chunks

前端 未结 3 653
深忆病人
深忆病人 2020-12-05 00:57

I have select with more then

70 milion rows

I\'d like to save the selected data into the one large csv file on win2012 R2

3条回答
  •  Happy的楠姐
    2020-12-05 01:23

    Another approach for such a large dataset, to avoid the need to chunk the output, would be to query the relevant data into its own new table (not a temporary table) containing just the data you need, and then use mysqldump to handle the export to file.

提交回复
热议问题