我正在使用查询将结果输出到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文件中获得列的标题。