Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL SELECT INTO OUTFILE Export options

Does anyone know where can I find the documentation for all the export options of the SELECT ... OUTFILE statement of MySQL? I have noticed in multiple questions parameters such as

FIELDS ENCLOSED BY delimiter
FIELDS ESCAPED BY delimiter
FIELDS TERMINATED BY delimiter

but I haven't managed to find the complete list of parameters yet. Can somebody please help?

like image 621
georgepsarakis Avatar asked Feb 02 '23 08:02

georgepsarakis


1 Answers

This is the official documentation.

You might want to take a look at this too, as it seems the syntax from [FIELDS] and [LINES] is taken from the "load data infile"

like image 161
Mosty Mostacho Avatar answered Feb 05 '23 08:02

Mosty Mostacho