当前位置:网站首页>Mysql查询表字段信息
Mysql查询表字段信息
2022-06-29 10:00:00 【绅士jiejie】
示例sql
SELECT
*
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
table_schema = '数据库名'
AND table_name = '表名'
这里会获取到全部的信息,其中有几个常用的字段,可以了解下,如下:
| 字段名 | 描述 |
|---|---|
| COLUMN_NAME | 字段名称 |
| COLUMN_COMMENT | 字段注释 |
| COLUMN_TYPE | 字段类型(带长度) |
| DATA_TYPE | 字段类型 |
边栏推荐
- USB转RS485串口电路设计「建议收藏」
- The use and difference of watch listening and computed calculation attributes
- 由ASP.NET Core根据路径下载文件异常引发的探究
- 嵌入式学习书籍推荐[通俗易懂]
- 【评论送书】适合初学者的 6 个有趣的 R 语言项目
- 细粒度识别、分类、检索数据集整理
- Stm32f1 and stm32subeide programming example - ultrasonic distance sensor drive
- 30-year-old female, ordinary software testing Yuanyuan, confused and anxious about her career
- 任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过
- Hystrix fuse: Service fusing and service degradation
猜你喜欢

在线文本过滤小于指定长度工具

Print leap years between 1000 and 2000 (C language)

Atomic explanation of AQS

CS231n-2022 Module1: 神经网络要点概述(2)

Alibaba cloud server is installed and configured with redis. Remote access is unavailable

Fully understand the volatile keyword

Cs231n-2022 module1: overview of key points of neural network (2)

【C语言进阶】字符串和内存函数(二)

(JS)数组去除重复

世界上第一个“半机械人”去世,改造自己只为“逆天改命”
随机推荐
np. astype()
30-year-old female, ordinary software testing Yuanyuan, confused and anxious about her career
反CSRF爆破的三种姿势
Pytorch learning notes (6) -- source code analysis of dataloader
认不出原来的模样
内存分配——静态存储区 栈 堆 与static变量
(JS)手写深拷贝
嵌入式学习书籍推荐[通俗易懂]
Ningde era Kirin battery has greater ambition
# 【OpenCV 例程200篇】214. 绘制椭圆的参数详解
SQL Server 数据库的几种简单查询
小米手机-解BL锁+开ROOT权限
zabbix监控mysql各项指标
[FreeRTOS] 08 mutex semaphores and priority inversion
企业竞争分析的几种方法:SWOT、波特五力、PEST「建议收藏」
Analysis of reentrantlock source code of AQS
容器平台性能如何测试,稳定性、扩展效率、组件性能
Reprint: five methods to determine whether an object has attributes
Offensive and defensive world re insfsay
深入浅出总结Flink运行时架构