https://www.jb51.net/article/47525.htm
1、新建一個表,比如new-table,包含所要導出的字段的名稱,比如a,b,c
2、使用insert into new-table (a,b,c) select a,b,c from old-table;
3、剩下的步驟就是導出這個新的表,然后進行文本的處理
代碼格式如下:
INSERT INTO `e_userinfo_temp` ( `realname`, `sex`, `birthday`, `company`, `studentno`, `openid`, `unionid`, `job`, `phone`, `mbphone`, `score`, `currentScore`) select `realname`, `sex`, `birthday`, `company`, `studentno`, `openid`, `unionid`, `job`, `phone`, `mbphone`, `score`, `currentScore` from `e_userinfo`