且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将MySQL数据库结构导出到Excel文件?

更新时间:2022-06-02 22:02:38

这是一种更简单的方法:

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.