I've typed the following code to output the csv file , but it shows an error
mysql> SELECT *INFO OUTFILE 'd:/student.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\r\n' FROM tbl_student;
does anybody know what's wrong here?