mysqlのデータをtsv出力するコマンド

何度も忘れてその度に調べるのでメモ

mysql -u user -ppass -h host db_name -e "select * from table" > table.tsv