SELECT INTO DUMPFILE
Export a single row to a file without formatting. This statement writes raw binary data, such as BLOBs, directly to a file on the server.
Syntax
SELECT ... INTO DUMPFILE 'file_path'Description
Example
SELECT _utf8'Hello world!' INTO DUMPFILE '/tmp/world';
SELECT LOAD_FILE('/tmp/world') AS world;
+--------------+
| world |
+--------------+
| Hello world! |
+--------------+See Also
Last updated
Was this helpful?

