当前位置:网站首页>利用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

边栏推荐
- 拼多多店铺营业执照相关问题
- 洛谷P4847 银河英雄传说V2
- Interchangeable Measurement Techniques - Geometric Errors
- 【深度学习】基于卷积神经网络的天气识别训练
- QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
- What is machine learning?Explain machine learning concepts in detail
- MYSQLg advanced ------ clustered and non-clustered indexes
- Description of ESB product development steps under cloud platform
- 移动端地图开发选择哪家?
- 快速使用UE4制作”大场景游戏“
猜你喜欢

Get Qt installation information: including installation directory and various macro addresses

Is Redis old?Performance comparison between Redis and Dragonfly

机器学习是什么?详解机器学习概念

【FPGA】day20-I2C读写EEPROM

What is machine learning?Explain machine learning concepts in detail

Where can machine learning be applied?What is machine learning useful for?

获取Qt的安装信息:包括安装目录及各种宏地址

leetCode刷题14天二叉树系列之《 110 平衡二叉树判断》

es-head插件插入查询以及条件查询(五)

校园兼职平台项目反思
随机推荐
Where can machine learning be applied?What is machine learning useful for?
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 is Machine Reinforcement Learning?What is the principle?
What are port 80 and port 443?What's the difference?
Map中的getOrDefualt方法
What is third-party payment?
校园兼职平台项目反思
华南师范宋宇老师课堂对话论文翻译
使用百度EasyDL实现森林火灾预警识别
set_new_handler(0)是什么意思?有什么用?
【FPGA】day21- moving average filter
洛谷P5139 z小f的函数
LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
Roewe imax8ev cube battery security, what blackening and swelling are hidden behind it?
移动端地图开发选择哪家?
Kubernetes集群搭建Zabbix监控平台
【FPGA】day19-二进制转换为十进制(BCD码)
Description of ESB product development steps under cloud platform
[FPGA] day19- binary to decimal (BCD code)
北湖区燕泉街道开展“戴头盔·保安全”送头盔活动