当前位置:网站首页>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,导出数据库表结构完成。
边栏推荐
- MySQL practice 45 lecture [row lock]
- Agile certification (professional scrum Master) simulation exercises
- 45 lectures on MySQL [index]
- Limit of one question per day
- Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
- C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
- Bigvision code
- 从输入URL到页面展示这中间发生了什么?
- Pytoch configuration
- 900W+ 数据,从 17s 到 300ms,如何操作
猜你喜欢

Spark on yarn resource optimization ideas notes

softmax的近似之NCE详解

MySql实战45讲【SQL查询和更新执行流程】

VS code配置虚拟环境

LVGL使用心得

别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!

Spark on yarn资源优化思路笔记

Vs 2019 installation and configuration opencv

docker安装redis
![MySQL Real combat 45 [SQL query and Update Execution Process]](/img/cd/3a635f0c3bb4ac3c8241cb77285cc8.png)
MySQL Real combat 45 [SQL query and Update Execution Process]
随机推荐
How to make backgroundworker return an object
node 开启服务器
Agile certification (professional scrum Master) simulation exercises
BigVision代码
[set theory] partial order relation (partial order relation definition | partial order set definition | greater than or equal to relation | less than or equal to relation | integer division relation |
Avec trois. JS fait une scène 3D simple
敏捷认证(Professional Scrum Master)模拟练习题
900w+ data, from 17s to 300ms, how to operate
销毁Session和清空指定的属性
Spark on yarn resource optimization ideas notes
About HTTP cache control
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
docker安装redis
What happens between entering the URL and displaying the page?
The series of hyperbolic function in daily problem
基于Qt的yolov5工程
模型转换onnx2engine
[AI practice] Application xgboost Xgbregressor builds air quality prediction model (I)
Vs Code configure virtual environment
float与0比较