当前位置:网站首页>Use Navicat Premium to export database table structure information to Excel
Use Navicat Premium to export database table structure information to Excel
2022-08-11 04:26:00 【A rookie is a god】
Execute sql
SELECTCOLUMN_NAME column name,COLUMN_TYPE data type,DATA_TYPE field type,CHARACTER_MAXIMUM_LENGTH length,IS_NULLABLE is empty,COLUMN_DEFAULT default value,COLUMN_COMMENT CommentsFROMINFORMATION_SCHEMA.COLUMNSWHERE-- Fill in the name of the database to export the table structuretable_schema = 'database'-- table name, fill in the name of the table to be exported-- If not written, query data in all tables by defaultAND table_name = 'tablename';
Note:
database: fill in the database name;tablename: Fill in the table to be exported to excel.
Execution result
Copy result
Click the result, ctrl+a
Copy into excel
Open a blank Excel document, Ctrl+V
边栏推荐
猜你喜欢
LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
The last update time of the tables queried by the two nodes of the rac standby database is inconsistent
Differences and connections between distributed and clustered
LeetCode Brush Questions Day 11 String Series "58 Last Word Length"
北湖区燕泉街道开展“戴头盔·保安全”送头盔活动
[C Language] Getting Started
Power Cabinet Data Monitoring RTU
【力扣】22.括号生成
"110 Balanced Binary Tree Judgment" in leetCode's 14-day binary tree series
移动端地图开发选择哪家?
随机推荐
[FPGA] day19- binary to decimal (BCD code)
Mysql中事件和定时任务
北湖区燕泉街道开展“戴头盔·保安全”送头盔活动
How to add icons to web pages?
What is machine learning?Explain machine learning concepts in detail
typedef defines the structure array type
Where can machine learning be applied?What is machine learning useful for?
Clang Code Model: Error: The clangbackend executable “X:/clangbackend.exe“ could not be started
leetcode刷题第13天二叉树系列之《98 BST及其验证》
Alibaba Cloud releases 3 high-performance computing solutions
洛谷P2580 于是他错误的点名开始了
Map中的getOrDefualt方法
MYSQLg advanced ------ return table
Callable实现多线程
【深度学习】基于卷积神经网络的天气识别训练
[FPGA] Design Ideas - I2C Protocol
What are port 80 and port 443?What's the difference?
【Web3 系列开发教程——创建你的第一个 NFT(9)】如何在手机钱包里查看你的 NFT
如何给网页添加icon图标?
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)