命令行执行mysql 查询 去表头

mysql -N -e 'select * from xxx'>a.txt

mysql --skip-column-names -e 'select * from xxx'>a.txt


mysql -e 'select * from xxx'>a.txt

`sed -i '1d' a.txt`

你可能感兴趣的:(mysql,表头)