当前位置:网站首页>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,导出数据库表结构完成。
边栏推荐
- Limit of one question per day
- umi 路由拦截(简单粗暴)
- Basic information of Promethus (I)
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- 将时间戳转为指定格式的时间
- Can I use read-only to automatically implement properties- Is read-only auto-implemented property possible?
- 模糊查詢時報錯Parameter index out of range (1 > number of parameters, which is 0)
- 基于QT的tensorRT加速的yolov5
- Small guide for rapid formation of manipulator (VIII): kinematic modeling (standard DH method)
- redis高级应用【密码防护、数据持久化、主从同步、哨兵模式、事务】【暂未完成(半成品)】
猜你喜欢

为什么线程崩溃不会导致 JVM 崩溃

The calculation of stripe, kernel and padding in CNN

VS code配置虚拟环境

The series of hyperbolic function in daily problem

Distributed transaction

敏捷认证(Professional Scrum Master)模拟练习题-2

Tidal characteristics of the Bohai Sea and the Yellow Sea

Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte

umi 路由拦截(简单粗暴)

用Three.js做一個簡單的3D場景
随机推荐
二维数组中的元素求其存储地址
The idea setting code is in UTF-8 idea Properties configuration file Chinese garbled
Hi3536c v100r001c02spc040 cross compiler installation
Model transformation onnx2engine
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
解决高並發下System.currentTimeMillis卡頓
I2C subsystem (I): I2C spec
MySql实战45讲【全局锁和表锁】
Use of El tree search method
将时间戳转为指定格式的时间
Spark on yarn资源优化思路笔记
Vs 2019 configuration tensorrt
Compare float with 0
docker安装mysql
Elsevier latex submitted the article pdftex def Error: File `thumbnails/cas-email. jpeg‘ not found: using draf
Pytoch configuration
MySql实战45讲【索引】
Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
The difference between componentscan and componentscans
L'index des paramètres d'erreur est sorti de la plage pour les requêtes floues (1 > Nombre de paramètres, qui est 0)