如何将MySQL数据库结构导出到Excel文件? [英] How do I export a MySQL db structure to an Excel file?

查看:638
本文介绍了如何将MySQL数据库结构导出到Excel文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有将MySQL db结构导出到Excel文件的工具? 例如:

Is there any tool to export a MySQL db structure to an Excel file? For example:

1   ID  int(10)  not null  pri   0  index   comment

感谢您的帮助.

推荐答案

这是一种更简单的方法:

Here is a much simpler way:

  1. 从phpMyAdmin中,选择数据库,然后选择结构"选项卡.
  2. 向下滚动到表列表的底部.
  3. 单击数据字典.
  4. 全选,然后复制/粘贴到Excel中.

此方法生成一个报告,列出所有表,以及每个表中的所有字段,包括字段类型(如果允许NULL),默认值,链接,注释和MIME.它还列出了所有索引,包括类型,唯一性,索引是否压缩以及索引注释.

This method produces a report listing all tables, plus all fields within each table including the field type, if NULL is allowed, default value, links, comments, and MIME. It also lists all indexes including type, uniqueness, whether the index is packed, and index comments.

这篇关于如何将MySQL数据库结构导出到Excel文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆