Mysql export query results Excel table

 

Mysql export query results Excel table:


A conversion method:
$ MySQL -uops -p'GCNgH000KP 'DTBS -e' SELECT * from t_proxy__record; '--default-Character-SET = GB2312> ooooo.xls

or

Two conversion:

MySQL-uroot--p'password $ 'DTBS -e "help_cat the WHERE from the SELECT * 1 by the Order of the type desc limit 0,20;"> type.xls
$ iconv -futf8 -tgb2312 -otype.xls type.xls // (1 ) encoded in this manner to convert the file format or (2) inside Notepad open windows ANSI format file save, view windows or garbled.

 

Guess you like

Origin www.cnblogs.com/immense/p/11406760.html