当前位置:网站首页>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,导出数据库表结构完成。
边栏推荐
- 模糊查詢時報錯Parameter index out of range (1 > number of parameters, which is 0)
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- 二维数组中的元素求其存储地址
- Docker install redis
- float与0比较
- 敏捷认证(Professional Scrum Master)模拟练习题
- Pat class B common function Usage Summary
- VS 2019 配置tensorRT生成engine
- [AI practice] Application xgboost Xgbregressor builds air quality prediction model (I)
- Bigvision code
猜你喜欢

Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11

Do you really understand relays?

Nce detail of softmax approximation

TCP handshake three times and wave four times. Why does TCP need handshake three times and wave four times? TCP connection establishes a failure processing mechanism

Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training

VS 2019 配置tensorRT生成engine

The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled

PAT乙级“1104 天长地久”DFS优化思路

Ansible简介【暂未完成(半成品)】

Idea format code idea set shortcut key format code
随机推荐
labelme标记的文件转换为yolov5格式
MySql实战45讲【SQL查询和更新执行流程】
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
Hi3536c v100r001c02spc040 cross compiler installation
LVGL使用心得
softmax的近似之NCE详解
C # general interface call
Vs Code configure virtual environment
Find the storage address of the elements in the two-dimensional array
[combinatorics] number of solutions of indefinite equations (number of combinations of multiple sets R | number of non negative integer solutions of indefinite equations | number of integer solutions
Use of El tree search method
float与0比较
Avec trois. JS fait une scène 3D simple
[Chongqing Guangdong education] cultural and natural heritage reference materials of China University of Geosciences (Wuhan)
Creation and destruction of function stack frame
复选框的使用:全选,全不选,选一部分
Parameter index out of range (1 > number of parameters, which is 0)
ComponentScan和ComponentScans的区别
Model transformation onnx2engine
Using jasmine to monitor constructors - spying on a constructor using Jasmine