当前位置:网站首页>利用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
边栏推荐
- 使用百度EasyDL实现智能垃圾箱
- 拼多多店铺营业执照相关问题
- .NET service registration
- DNS separation resolution and intelligent resolution
- 【FPGA】day21-移动平均滤波器
- [FPGA] Design Ideas - I2C Protocol
- uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
- [yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
- 《卫星界》刊评“星辰大海”计划:孙宇晨为太空旅游带来新的机遇
- When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
猜你喜欢
The last update time of the tables queried by the two nodes of the rac standby database is inconsistent
QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
LeetCode刷题第16天之《239滑动窗口最大值》
"104 Maximum Depth of Binary Trees" in LeetCode's Day 12 Binary Tree Series
机器学习怎么学?机器学习流程
"98 BST and Its Verification" of the 13th day of leetcode brushing series of binary tree series
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
STC8H development (15): GPIO drive Ci24R1 wireless module
Where can machine learning be applied?What is machine learning useful for?
"3 Longest Substring Without Repeating Characters" on the 17th day of LeetCode brushing
随机推荐
【人话版】WEB3将至之“权益的游戏”
获取Qt的安装信息:包括安装目录及各种宏地址
使用jackson解析json数据详讲
What is machine learning?Explain machine learning concepts in detail
洛谷P4032 火锅盛宴
一文读懂 高性能可预期数据中心网络
我的 archinstall 使用手册
移动端地图开发选择哪家?
typedef defines the structure array type
【FPGA】day20-I2C读写EEPROM
Audio codec, using FAAC to implement AAC encoding
.NET 服务注册
LeetCode刷题第11天字符串系列之《 58最后一个单词长度》
MYSQLg高级------聚簇索引和非聚簇索引
直播平台开发,Flutter,Drawer侧滑
【FPGA】day19-二进制转换为十进制(BCD码)
【FPGA】abbreviation
【FPGA】SDRAM
es-head插件插入查询以及条件查询(五)
uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)