当前位置:网站首页>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,导出数据库表结构完成。
边栏推荐
- Elsevier latex 提交文章 pdftex.def Error: File `thumbnails/cas-email.jpeg‘ not found: using draf
- Opengauss database development and debugging tool guide
- 模糊查询时报错Parameter index out of range (1 > number of parameters, which is 0)
- Idea format code idea set shortcut key format code
- PHP constructor with parameters - PHP constructor with a parameter
- umi 路由拦截(简单粗暴)
- MySql實戰45講【SQL查詢和更新執行流程】
- PAT乙级常用函数用法总结
- 程序员新人上午使用 isXxx 形式定义布尔类型,下午就被劝退?
- node 开启服务器
猜你喜欢
用Three.js做一個簡單的3D場景
Idea set method call ignore case
3D drawing example
Spark on yarn resource optimization ideas notes
MySql实战45讲【SQL查询和更新执行流程】
MySQL practice 45 [global lock and table lock]
Why does thread crash not cause JVM crash
The idea cannot be loaded, and the market solution can be applied (pro test)
Unity3d RPG implementation (medium)
MySql实战45讲【行锁】
随机推荐
MySql实战45讲【SQL查询和更新执行流程】
MySQL practice 45 lecture [transaction isolation]
com. fasterxml. jackson. databind. Exc.invalidformatexception problem
docker安装mysql
C#通用接口调用
[combinatorics] Application of exponential generating function (multiple set arrangement problem | different balls in different boxes | derivation of exponential generating function of odd / even sequ
Yolov5 project based on QT
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
二进制流转换成字节数组
使用InputFilter限制EditText时踩坑及解决方案
Limit of one question per day
The idea cannot be loaded, and the market solution can be applied (pro test)
[algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
403 error displayed when vs cloning
[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
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
On the adjacency matrix and adjacency table of graph storage
Hi3536C V100R001C02SPC040 交叉编译器安装
Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
Réglez la hauteur et lancez le système. Currenttimemillis catton