mysql – 使用SELECT INTO OUTFILE时包含头文件?

当使用MySQL INTO OUTFILE时,是否可能包含头文件?
你必须自己硬编码这些头。就像是:

SELECT 'ColName1', 'ColName2', 'ColName3'
UNION ALL
SELECT ColName1, ColName2, ColName3
    FROM YourTable
    INTO OUTFILE '/path/outfile'
http://stackoverflow.com/questions/5941809/include-headers-when-using-select-into-outfile

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:mysql – 使用SELECT INTO OUTFILE时包含头文件?