2018年3月9日星期五

export table to csv file

 mysql -uroot -psmkslb HtipDB -e "select * from nodes_log" -B > mytable.csv


SELECT * FROM users
  INTO OUTFILE '/tmp/users.csv'
  FIELDS TERMINATED BY ','
  OPTIONALLY ENCLOSED BY '"';

没有评论:

发表评论