需要一种方法来提取包含结果的列标题

时间:2014-11-05 19:28:43

标签: mysql sql

我正在使用查询将结果输出到CSV文件中。查询是

select distinct FirstName,LastName,Company,State,Email1,Email2,contact_number,Cellphone,Cellphone2
into outfile '/tmp/prudential.csv'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
ESCAPED BY '\\'
LINES TERMINATED BY '\n' From person;

有一种方法可以在CSV文件中获得列的标题。

0 个答案:

没有答案