1.导出一个数据表中的部分字段数据;
SELECT `lUin` , `iSumMoney` , `iAreaId` FROM tbtest INTO OUTFILE ‘C:/Users/Administrator/Desktop/test/123.xlsx‘
2.导入数据到一个表的相应字段中;
LOAD DATA INFILE ‘data.txt‘ INTO TABLE db2.gs_table;
LOAD DATA INFILE ‘data.txt‘ INTO TABLE table2 FIELDS TERMINATED BY ‘,‘;
3.根据iUin的总的money来进行排序;
原文地址:http://www.cnblogs.com/jakentec/p/3866237.html