使用MySQL时是否可以以某种方式包含标头INTO OUTFILE?
INTO OUTFILE
您必须自己对这些标头进行硬编码。就像是:
SELECT 'ColName1', 'ColName2', 'ColName3' UNION ALL SELECT ColName1, ColName2, ColName3 FROM YourTable INTO OUTFILE '/path/outfile'