原文链接:https://blog.csdn.net/pengchengliu/article/details/82884046
原文作者:/home/liupc
解决办法:利用重定向>
例:SELECT
skin_1,
skill_0,
skill_1,
skill_2,
skill_3,
price_1
FroM
tbl_hero
WHERE
hero_name='$name';">/tmp/hero_$date.csv