当前位置:网站首页>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,导出数据库表结构完成。
边栏推荐
- Learning notes of C programming [compiled by Mr. Tan Haoqiang] (Chapter III sequence programming) 04 C sentence
- node 开启服务器
- Nasvit: neural architecture search of efficient visual converter with gradient conflict perception hypernetwork training
- Why does thread crash not cause JVM crash
- MySql实战45讲【行锁】
- Limit of one question per day
- Creation and destruction of function stack frame
- Force deduction ----- the minimum path cost in the grid
- MySql实战45讲【全局锁和表锁】
- docker安装mysql
猜你喜欢
Section 26 detailed explanation and demonstration of IPSec virtual private network configuration experiment - simulation experiment based on packettracer8.0
Agile certification (professional scrum Master) simulation exercise-2
MySQL practice 45 [SQL query and update execution process]
VS 2019配置tensorRT
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
Idea format code idea set shortcut key format code
Pytorch轻量级可视化工具wandb(local)
[pyg] understand the messagepassing process, GCN demo details
MySql实战45讲【行锁】
Docker install redis
随机推荐
Limit of one question per day
Réglez la hauteur et lancez le système. Currenttimemillis catton
静态网页 和 动态网页的区别 & WEB1.0和WEB2.0的区别 & GET 和 POST 的区别
The series of hyperbolic function in daily problem
解决高並發下System.currentTimeMillis卡頓
Latest version of NPM: the "NPM" item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check
Use of check boxes: select all, deselect all, and select some
Converts a timestamp to a time in the specified format
Last update time of all sqlserver tables
MySQL practice 45 [global lock and table lock]
The calculation of stripe, kernel and padding in CNN
The XML file generated by labelimg is converted to VOC format
900w+ data, from 17s to 300ms, how to operate
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
MySql实战45讲【索引】
The file marked by labelme is converted to yolov5 format
Are there any recommended term life insurance products? I want to buy a term life insurance.
Summary of determinant knowledge points in Chapter 1 of Linear Algebra (Jeff's self perception)
Solve high and send system Currenttimemillis Caton
File rename