当前位置:网站首页>利用Navicat Premium导出数据库表结构信息至Excel
利用Navicat Premium导出数据库表结构信息至Excel
2022-08-11 04:00:00 【菜鸟是大神】
执行sql
SELECT
COLUMN_NAME 列名,
COLUMN_TYPE 数据类型,
DATA_TYPE 字段类型,
CHARACTER_MAXIMUM_LENGTH 长度,
IS_NULLABLE 是否为空,
COLUMN_DEFAULT 默认值,
COLUMN_COMMENT 备注
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
-- 填写要导出表结构的数据库名称即可
table_schema = 'database'
-- 表名,填写要导出的表的名称
-- 如果不写的话,默认查询所有表中的数据
AND table_name = 'tablename';备注:
database:填写数据库名称; tablename:填写要导出excel的表。
执行结果

复制结果

点击结果,ctrl+a
复制进excel
打开一个空白的Excel文档,Ctrl+V

边栏推荐
- js uses the string as the js execution code
- LeetCode刷题第11天字符串系列之《 58最后一个单词长度》
- 使用百度EasyDL实现森林火灾预警识别
- STC8H development (15): GPIO drive Ci24R1 wireless module
- 80端口和443端口是什么?有什么区别?
- Roewe imax8ev cube battery security, what blackening and swelling are hidden behind it?
- 【FPGA】abbreviation
- The thirteenth day of learning programming
- LeetCode刷题第17天之《3 无重复字符的最长子串》
- What has programmatic trading changed?
猜你喜欢

Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)

【深度学习】基于卷积神经网络的天气识别训练

Detailed explanation of VIT source code

DNS separation resolution and intelligent resolution

"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series

es-head plugin insert query and conditional query (5)

Power Cabinet Data Monitoring RTU

《卫星界》刊评“星辰大海”计划:孙宇晨为太空旅游带来新的机遇

Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method

使用jackson解析json数据详讲
随机推荐
Interchangeable Measurement Techniques - Geometric Errors
Alibaba Cloud releases 3 high-performance computing solutions
LeetCode刷题第17天之《3 无重复字符的最长子串》
蹭个热度-请勿打开
洛谷P1763 埃及分数
Differences and connections between distributed and clustered
Kubernetes集群搭建Zabbix监控平台
Description of ESB product development steps under cloud platform
typedef defines the structure array type
Leetcode 669. 修剪二叉搜索树
Get Qt installation information: including installation directory and various macro addresses
【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion
"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series
直播软件搭建,流式布局,支持单选、多选等
UNI-APP_iphone bottom safe area
每日一题-滑动窗口
What should I do if the channel ServerID is incorrect when EasyCVR is connected to a Hikvision Dahua device and selects another cluster server?
What are port 80 and port 443?What's the difference?
[FPGA] day19- binary to decimal (BCD code)
Audio codec, using FAAC to implement AAC encoding