当前位置:网站首页>navicat 导出数据库的表结构
navicat 导出数据库的表结构
2022-07-03 03:23:00 【水w】
navicat 导出数据库的表结构
(1)打开navicat for Mysql,点击页面上方的“new query”

(2)在“SQL Editior”中写入代码进行数据库查询,点击按钮运行,
注意:代码中的有两个地方的xxx需要修改
SELECT
COLUMN_NAME 名称,
COLUMN_TYPE 数据类型,
IF(IS_NULLABLE='NO','是','否') AS '是否允许为空',
COLUMN_DEFAULT '默认值',
COLUMN_COMMENT 注释
FROM
INFORMATION_SCHEMA.COLUMNS
where
-- xxx为数据库名称,到时候只需要修改成你要导出表结构的数据库即可
table_schema ='xxx'
AND
-- xxx为表名,到时候换成你要导出的表的名称
-- 如果不写的话,默认会查询出所有表中的数据,这样可能就分不清到底哪些字段是哪张表中的了
table_name = 'xxx'

(3)点击运行之后,就会出现查询结果, 
(4)点击上方的“导出”按钮,
就会弹出以下页面,在这个页面中,我们可以选择不同格式的导出方式,

点击“continue” 进入下一步,

勾选“include column titles”之后,点击“continue” 进入下一步,
点击“start”,
等待导出完成,点击“pause”或者“close”。
(5)导出成功之后,

OK,导出数据库表结构完成。
边栏推荐
- QT based tensorrt accelerated yolov5
- Left connection, inner connection
- Pytorch轻量级可视化工具wandb(local)
- Don't use the new Dede collection without the updated Dede plug-in
- Small guide for rapid formation of manipulator (VIII): kinematic modeling (standard DH method)
- How to make backgroundworker return an object
- Yolov5 project based on QT
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- Basic information of Promethus (I)
- 机械臂速成小指南(八):运动学建模(标准DH法)
猜你喜欢

umi 路由拦截(简单粗暴)

The series of hyperbolic function in daily problem

Stop using system Currenttimemillis() takes too long to count. It's too low. Stopwatch is easy to use!

Tidal characteristics of the Bohai Sea and the Yellow Sea

MongoDB简介

softmax的近似之NCE详解

Creation and destruction of function stack frame
![C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 03 operators and expressions](/img/4a/1df03d9f3315debb4c335260ed39f2.jpg)
C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 03 operators and expressions
![MySQL practice 45 [global lock and table lock]](/img/23/fd58c185ae49ed6c04f1a696f10ff4.png)
MySQL practice 45 [global lock and table lock]

MySql实战45讲【索引】
随机推荐
Idea format code idea set shortcut key format code
The calculation of stripe, kernel and padding in CNN
Pytoch configuration
redis高级应用【密码防护、数据持久化、主从同步、哨兵模式、事务】【暂未完成(半成品)】
node 开启服务器
Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
Vs 2019 configuration tensorrt
float与0比较
Yolov5 project based on QT
解决高并发下System.currentTimeMillis卡顿
The idea cannot be loaded, and the market solution can be applied (pro test)
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Vs 2019 configure tensorrt to generate engine
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
labelme标记的文件转换为yolov5格式
Hi3536c v100r001c02spc040 cross compiler installation
后管中编辑与预览获取表单的值写法
VS 2019 配置tensorRT生成engine
Elsevier latex 提交文章 pdftex.def Error: File `thumbnails/cas-email.jpeg‘ not found: using draf
Pytorch配置