当前位置:网站首页>MySQL export database dictionary to excel file
MySQL export database dictionary to excel file
2022-06-28 05:12:00 【Not the Eight Precepts of the second senior brother】
echo "USE information_schema;
SELECT
-- T.TABLE_SCHEMA AS ' Database name ',
T.TABLE_NAME AS ' The name of the table ',
T.TABLE_COMMENT AS ' Table description ',
-- T.TABLE_TYPE AS ' Table type ',
-- T.ENGINE AS ' Database engine ',
C.COLUMN_NAME AS ' Field name ',
C.COLUMN_COMMENT AS ' Field description ' ,
C.COLUMN_TYPE AS ' data type ',
C.IS_NULLABLE AS ' Allow null ',
C.EXTRA AS ' Self increasing property ',
C.ORDINAL_POSITION AS ' Serial number ',
C.CHARACTER_SET_NAME AS ' Code name ',
C.COLUMN_DEFAULT AS ' The default value is '
FROM
COLUMNS C
INNER JOIN TABLES T ON C.TABLE_SCHEMA = T.TABLE_SCHEMA
AND C.TABLE_NAME = T.TABLE_NAME
WHERE
T.TABLE_SCHEMA = ' Your database name '" | mysql -uroot -p > /var/www/dd.xlsPost code directly Modify the database name and export path to use

边栏推荐
猜你喜欢

How high is the gold content of grade II cost engineer certificate? Just look at this

店铺进销存管理系统源码

Biovendor sRAGE protein solution

2022 low voltage electrician examination questions and answers

2022年安全员-B证考试题库及答案

并发之wait/notify说明

Feign remote call fallback callback failed, no effect

sqlmap工具使用手册

Learning Tai Chi Maker - mqtt Chapter II (VI) mqtt wills

【JVM系列】JVM调优
随机推荐
并发之wait/notify说明
[JVM series] JVM tuning
Binary sort tree: BST
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
如何从零设计一款牛逼的高并发架构(建议收藏)
学习太极创客 — MQTT 第二章(四)ESP8266 保留消息应用
Have you finished the examination of level II cost engineer? There are also qualification regulations!
Unity delegate
Dart learning - functions, classes
短视频本地生活版块成为热门,如何把握新的风口机遇?
RxSwift --(1)创建一个项目
整理网上蛋糕商城项目
The latest examination questions and answers for the eight members (standard members) of Liaoning architecture in 2022
How to do a good job of gateway high availability protection in the big promotion scenario
IP datagram sending and forwarding process
无线传感器网络学习笔记(一)
判断对象中是否存在某一个属性
cgo+gSoap+onvif学习总结:8、arm平台交叉编译运行及常见问题总结
?位置怎么写才能输出true
DPDK 源码测试时性能下降问题