mysql -hip -uuser -p -A DB -e '[sql]' | sed 's/ /","/g;s/^/"/;s/$/"/;s/ //g' > /tmp/a.csv //结果导出为csv呢