当前位置:网站首页>MYSQL导出数据字典
MYSQL导出数据字典
2022-08-08 04:18:00 【TomcatLikeYou】
字段导出:
SELECT
TABLE_SCHEMA AS `数据库名`,
TABLE_NAME AS `表名`,
COLUMN_NAME AS `列名`,
COLUMN_TYPE AS `类型`,
COLUMN_DEFAULT AS `默认值`,
IS_NULLABLE AS `允许为空`,
DATA_TYPE AS `数据类型`,
CHARACTER_MAXIMUM_LENGTH AS `字符最大长度`,
NUMERIC_PRECISION AS `数字精度`,
NUMERIC_SCALE AS `小数位数`,
COLUMN_COMMENT AS `字段说明`
FROM
information_schema.COLUMNS
WHERE
TABLE_SCHEMA = 'db_name' #db_name代表数据库名表导出
SELECT
TABLE_SCHEMA AS `数据库名`,
TABLE_NAME AS `表名`,
CREATE_TIME AS `创建时间`,
TABLE_COLLATION AS `字符集`,
TABLE_COMMENT AS `表注释`
FROM
information_schema.TABLES
WHERE
TABLE_SCHEMA = 'db_name'视图导出
SELECT
TABLE_SCHEMA AS `数据库名`,
TABLE_NAME AS `视图名`
FROM
information_schema.VIEWS
WHERE
TABLE_SCHEMA = 'db_name'边栏推荐
- Cube - studio deployment process
- easypoi custom template export
- MySQL from entry to entry [20W word collection]
- 【Template Engine】velocity
- 剑指 Offer 17. 打印从1到最大的n位数
- 2022/08/06 Study Notes (day24) Collection
- 一行代码统计文本中指定字符串出现的次数
- 内修昇思MindSpore AI框架,外重行业汇聚,华为大模型的不平凡之路
- 【代码分析】图小样本异常检测方法:GDN:Few-shot Network Anomaly Detection via Cross-network Meta-learning
- Shell 脚本 — 多行注释、开启子/不开启子进程执行、转义带颜色输出、读取键盘输入、输入输出重定向、单双引号、命令替换、读取变量、系统变量、正则过滤、算术运算、一行多条命令、字符串比较
猜你喜欢

egg-validate-custom validation method error language (error Chinese prompt)

The research project of the Institute of Metal Research of the Chinese Academy of Sciences has been certified by Huawei, helping to develop a new paradigm in materials science!

Build a personal network disk using z-file and Qiniu cloud object storage

An egg - Nodemailer - qq email verification code development configuration

强网杯 2019-随便注 (堆叠注入)

The effect of base 0 or base 1 on the number of image iterations

第4周 一步步搭建多层神经网络以及应用(1 & 2)

leetcode: 874. Simulate a walking robot

fail-fast 和 fail-safe 快速学习

以0为底或以1为底对图片迭代次数的影响
随机推荐
第4周 一步步搭建多层神经网络以及应用(1 & 2)
L3-006 Slash in the wind
项目分析(嵌入式产品Web化)
拒绝“内卷”跃迁软件测试最大门槛,我是如何从月薪8K到15K的?
The live broadcast of agricultural products continues to heat up, Economic Daily: Don’t forget quality when rushing
[Code Analysis] Graph small sample anomaly detection method: GDN: Few-shot Network Anomaly Detection via Cross-network Meta-learning
国内最主流的5大项目工时管理系统
数据库缓冲区高速缓存中块的类型
Let your text be seen by more people: Come and contribute, the payment is reliable!
The research project of the Institute of Metal Research of the Chinese Academy of Sciences has been certified by Huawei, helping to develop a new paradigm in materials science!
亚马逊云科技Build On学习心得
How does JS use hexadecimal to save 100-bit state
cube-studio 部署过程
LeetCode_485_Maximum number of consecutive 1s
egg-Alibaba Cloud SMS Configuration
中间件的一些坑记录
vulnhub-DC-5 target drone penetration record
How to play knowledge graph in recommender system
包 package
中国科学院金属研究所科研课题获华为技术认证,助力材料学发展新范式!