当前位置:网站首页>MySQL查询数据库中的表和字段
MySQL查询数据库中的表和字段
2022-08-10 19:47:00 【dkbnull】
查询数据库中所有表名
select table_name
from information_schema.tables
where table_schema = '数据库名'
and table_type = 'BASE TABLE'
查询数据库中指定表的所有字段名
select column_name
from information_schema.columns
where table_schema = '数据库名'
and table_name = '表名'
查询包含某个字段的所有表名
select table_name
from information_schema.columns
where table_schema = '数据库名'
and table_name in
(select table_name
from information_schema.tables
where table_schema = '数据库名'
and table_type = 'BASE TABLE')
and column_name = '字段名'
边栏推荐
- 皮质-皮质网络的多尺度交流
- flask的配置文件
- 多线程与高并发(五)—— 源码解析 ReentrantLock
- What is the upstream bandwidth and downstream bandwidth of the server?
- 报错:runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator<int>>‘
- 2019河北省大学生程序设计竞赛部分题题解
- 《分布式微服务电商》专题(一)-项目简介
- YOLOv3 SPP源码分析
- [Natural Language Processing] [Vector Representation] PairSupCon: Pairwise Supervised Contrastive Learning for Sentence Representation
- (10) Sequence and deserialization of image data
猜你喜欢

laya打包发布apk

echart 特例-多分组X轴

ARouter使用自定义注解处理器,自动生成跳转Activity的代码,避免手动填写和管理path

whois information collection & corporate filing information

常见端口及服务

leetcode 547.省份数量 并查集

Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme | Palladium Nanozyme | GMP-Pd Nanozyme | Gold-Palladium Composite Nanozyme | Ternary Metal Pd-M-Ir Nanozyme |shell nanozyme

Hangdian Multi-School Seven 1003-Counting Stickmen (Combination Mathematics)

链表应用----约瑟夫问题

Tf ferritin particles contain cisplatin / oxaliplatin / doxorubicin / methotrexate MTX / paclitaxel PTX and other drugs
随机推荐
(10) Sequence and deserialization of image data
【luogu CF1534F2】Falling Sand (Hard Version)(性质)(dfs)(线段树 / 单调队列 / 贪心)
3D Game Modeling Learning Route
【greenDao】Cannot access ‘org.greenrobot.greendao.AbstractDaoSession‘ which is a supertype of
电信保温杯笔记——《统计学习方法(第二版)——李航》第17章 潜在语义分析
30分钟使用百度EasyDL实现健康码/行程码智能识别
CMU博士论文 | 视频多模态学习:探索模型和任务复杂性
redis如何查看key的有效期
巧用RoaringBitMap处理海量数据内存diff问题
(十二) findContours函数的hierarchy详解
报错:runtime error: reference binding to null pointer of type ‘std::vector<int, std::allocator<int>>‘
多线程与高并发(五)—— 源码解析 ReentrantLock
YOLOv3 SPP source analysis
[Natural Language Processing] [Vector Representation] PairSupCon: Pairwise Supervised Contrastive Learning for Sentence Representation
“2022零信任神兽方阵”启动调研,欢迎各单位填报信息
1D Array Dynamics and Question Answers
YOLOv3 SPP源码分析
水溶性合金量子点纳米酶|CuMoS纳米酶|多孔硅基Pt(Au)纳米酶|[email protected]纳米模拟酶|PtCo合金纳米粒子
Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
Metasploit——渗透攻击模块(Exploit)