linux-mysql-查詢結果導入到excel中

login mysql constol:mysql

mysql -u 用戶名 -psql

user 數據庫名數據庫

 

導入到excel中ide

select phoneNumber,count(phoneNumber) into outfile '/local/akazam/backup/xls03.xls' from log_request_201303 編碼

where ip !='127.0.0.1'excel

and ts >=1362067201000ip

group by phoneNumber HAVING count(phoneNumber)>1;it

 

中文編碼class

select convert(b using gb2312),convert(c using gb2312) into outfile 'c:\xlstt12.xls' from tt;file

相關文章
相關標籤/搜索