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`

  

相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2021-10-04
  • 2021-07-17
  • 2022-02-18
  • 2022-12-23
  • 2021-12-13
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2021-11-29
  • 2021-05-27
  • 2022-12-23
  • 2021-12-23
  • 2021-12-13
相关资源
相似解决方案