1、mysql -hxx -uxx -pxx -e 'select "" name from a' db数据库 > file 

2、导出的文件notepad++打开

3、新建excel文件,设置所有单元格格式为文本

4、复制notepad++内容到excel,保存

 

导出单个表到sql

mysqldump -u root -p database sys_menu > /mnt/sys_menu.sql

相关文章:

  • 2021-08-01
  • 2021-12-13
  • 2021-06-12
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案