当前位置:网站首页>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 | 字段类型 |
边栏推荐
猜你喜欢

如何优雅的写 Controller 层代码?

Here comes the tutorial of datawhale recommendation system!

由ASP.NET Core根据路径下载文件异常引发的探究

【C语言进阶】通讯录实现

真正的测试 =“半个产品+半个开发”?

Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game

【Rust每周一库】Tokei - 统计代码行数等信息的实用工具

你的项目需要自动化测试吗?

SQL Server 数据库的统计查询

C#MDI打开子窗体去掉自动生成的菜单栏
随机推荐
ZABBIX monitors various MySQL indicators
高薪程序员&面试题精讲系列117之怎么保证Redis缓存与数据库的数据一致性?
(JS)捕获错误(异常)
Recommended embedded learning books [easy to understand]
[200 opencv routines] 214 Detailed explanation of drawing ellipse parameters
Detailed explanation of handwritten numeral recognition based on support vector machine (Matlab GUI code, providing handwriting pad)
细粒度识别、分类、检索数据集整理
当技术人成长为 CEO,应该修改哪些“Bug”?
加密市场接连爆雷,Celsius能避免破产吗?
【C语言进阶】字符串和内存函数(一)
励志!专科“逆袭”读浙大硕士,3篇SCI,最终成清华博士!
Comprehensive understanding of synchronized
np.astype()
SQL Server 数据库增删改查语句
The product strength is not inferior to that of BYD. Geely Dihao l Raytheon hi · x delivered 10000 units in the first month
STM32F1與STM32CubeIDE編程實例-超聲波測距傳感器驅動
Fully understand the MESI cache consistency protocol
在 2022 年找工作,毕业生们的 “最后一课”
The difference between & & and &
np. astype()