You’d have to hard code those headers yourself. Something like:
SELECT 'ColName1', 'ColName2', 'ColName3'
UNION ALL
SELECT ColName1, ColName2, ColName3
FROM YourTable
INTO OUTFILE '/path/outfile'
More Related Contents:
- How can I get around MySQL Errcode 13 with SELECT INTO OUTFILE?
- MYSQL into outfile “access denied” – but my user has “ALL” access.. and the folder is CHMOD 777
- MySQL export into outfile : CSV escaping chars
- MySQL – SELECT * INTO OUTFILE LOCAL ?
- “INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE”
- How can I make SQL case sensitive string comparison on MySQL?
- Library not loaded: libmysqlclient.16.dylib error when trying to run ‘rails server’ on OS X 10.6 with mysql2 gem
- Count the occurrences of DISTINCT values
- Column count doesn’t match value count at row 1
- INSERT INTO … SELECT FROM … ON DUPLICATE KEY UPDATE
- Connect to mysql on Amazon EC2 from a remote server
- Docker-compose check if mysql connection is ready
- SQL: selecting rows where column value changed from previous row
- What is the location of mysql client “.my.cnf” in XAMPP for Windows?
- MySQL WHERE IN ()
- Using MySql with Entity Framework 4 and the Code-First Development CTP
- MySQL treats ÅÄÖ as AAO?
- MySQL – Supertype/Subtype design
- How can write queries in MySQL that can parse JSON data in a column?
- MySQL Time Zones
- How to use django models with foreign keys in different DBs?
- How can I undo a mysql statement that I just executed?
- Continue SQL query even on errors in MySQL workbench
- Which DATATYPE is better to use TEXT or VARCHAR?
- How to generate a UUIDv4 in MySQL?
- How can “set timestamp” be a slow query?
- INSERT INTO Table from multiple tables
- Mysql How do you create a clustered index?
- Counting associated entries with Sequelize
- MySQL data directory location