当前位置:网站首页>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 = '字段名'
边栏推荐
- 【自然语言处理】【向量表示】PairSupCon:用于句子表示的成对监督对比学习
- (十二) findContours函数的hierarchy详解
- whois信息收集&企业备案信息
- 【CNN】刷SOTA的trick
- Transferrin-modified vincristine-tetrandrine liposomes | transferrin-modified co-loaded paclitaxel and genistein liposomes (reagents)
- 验证码倒计时自定义hooks
- 【LeetCode】42、接雨水
- Hangdian Multi-School Seven 1003-Counting Stickmen (Combination Mathematics)
- flask生成路由的2种方式和反向生成url
- IIC通信协议总结[通俗易懂]
猜你喜欢
铁蛋白颗粒负载雷替曲塞/培美曲塞/磺胺地索辛/金刚烷(科研试剂)
Metasploit——渗透攻击模块(Exploit)
苹果字体查找
力扣18-四数之和——双指针法
Linux服务器安装Redis,详细步骤。
The 2021 ICPC Asia Shanghai Regional Programming Contest D、E
七月券商金工精选
Tf铁蛋白颗粒包载顺铂/奥沙利铂/阿霉素/甲氨蝶呤MTX/紫杉醇PTX等药物
Pt/CeO2 monatomic nanoparticles enzyme | H - rGO - Pt @ Pd NPs enzyme | carbon nanotube load platinum nanoparticles peptide modified nano enzyme | leukemia antagonism FeOPtPEG composite nano enzyme
2019河北省大学生程序设计竞赛部分题题解
随机推荐
常见端口及服务
IIC通信协议总结[通俗易懂]
@Autowired注解 --required a single bean, but 2 were found出现的原因以及解决方法
2020 ICPC Shanghai Site G
常用Anaconda安装错误解决办法Traceback (most recent call last):[通俗易懂]
laya打包发布apk
[SemiDrive source code analysis] [MailBox inter-core communication] 52 - DCF Notify implementation principle analysis and code combat
Tf铁蛋白颗粒包载顺铂/奥沙利铂/阿霉素/甲氨蝶呤MTX/紫杉醇PTX等药物
(12) findContours function hierarchy explanation
The 2021 ICPC Asia Shanghai Regional Programming Contest D、E
测试/开发程序员值这么多钱么?“我“不会愿赌服输......
mysql----group by、where以及聚合函数需要注意事项
nfs挂载服务器,解决挂载后无法更改用户id,无法修改、写文件,文件只读权限Read-only file system等问题
【图像分类】2017-MobileNetV1 CVPR
spark学习笔记(九)——sparkSQL核心编程-DataFrame/DataSet/DF、DS、RDD三者之间的转换关系
Multifunctional Nanozyme Ag/PANI | Flexible Substrate Nano ZnO Enzyme | Rhodium Sheet Nanozyme | Ag-Rh Alloy Nanoparticle Nanozyme | Iridium Ruthenium Alloy/Iridium Oxide Biomimetic Nanozyme
【SemiDrive源码分析】【MailBox核间通信】51 - DCF_IPCC_Property实现原理分析 及 代码实战
杭电多校七 1003-Counting Stickmen(组合数学)
端口探测详解
电脑如何去掉u盘写保护的状态