当前位置:网站首页>MySQL queries all table names and column information of the database through SQL
MySQL queries all table names and column information of the database through SQL
2022-07-23 10:22:00 【Desperately_ petty thief】
1、 Query all table names
Query all list information in the database , And automatically generate serial number
SELECT
ROW_NUMBER() over(order by "create_time") AS id,
table_name
FROM
information_schema.TABLES
WHERE
table_schema = (
SELECT DATABASE
()) 
2、 Query all table column information
Query the total column information of the database, including the table name 、 attribute 、 type 、 List and other information
SELECT
*
FROM
information_schema.COLUMNS
WHERE
table_schema = (
SELECT DATABASE
())
边栏推荐
- Anaconda 换源以及安装opencv
- Online English learning system based on s2sh+mysql
- Undo log日志详解
- 2. Judgment statement
- ArcGIS calculates the correlation between two grid layers
- AI性能拉满的“广和通AI智能模组SCA825-W”加速推进电商直播2.0时代
- 谈谈实施数据治理时常犯的10大错误
- C语言——几道C语言经典习题
- S2SH+mysql的在线英语学习系统
- These four key technologies are necessary to realize the unified management of urban governance through one network
猜你喜欢
随机推荐
Reverse theoretical knowledge 1
[summary]
The gospel of small and medium-sized enterprises is coming! Jnpf is becoming popular, helping business digital upgrading
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(四))
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (VII)
Online English learning system based on s2sh+mysql
新的项目实现的技术点如有需要可以指导
软考 系统架构设计师 简明教程 | 逆向工程
大专码农和 985 程序员有什么区别?
Special training - linked list
ARP Spoofing protection of network security
[pytorch] the difference between cuda() and to (device)
Android development learning diary - content provider (cross application database modification)
Network communication principle and IP address allocation principle. The seven layers of the network are physical layer, data link layer, network layer, transmission layer, session layer, presentation
EasyCVR平台升级到最新版本v2.5.0,如何同步mysql数据库?
Learn and understand Architecture Design from business development
Ten year structure five year Life-05 first business trip
金仓数据库 KingbaseES SQL 语言参考手册 (4. 伪列)
金仓数据库 KingbaseES SQL 语言参考手册 (8. 函数(八))
【汇总篇】






![[C language foundation] 15 bit operation](/img/9c/41fe33811b26ab961ede98c17322b9.jpg)

