Informasi mengenai file keluaran Anda harus ditentukan antara SELECT
dan FROM
klausa:
SELECT *
INTO OUTFILE "D:\Reports\Jan.csv"
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM purchase
WHERE purchase.PO_DATE >= '1-1-2016'
Panduan Referensi MySQL 5.7 | LOAD DATA INFILE Syntax