当前位置:网站首页>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 = '字段名'
边栏推荐
- 2022杭电多校七 Black Magic (签到)
- "POJ 3666" Making the Grade problem solution (two methods)
- 3D Game Modeling Learning Route
- Echart饼状图标注遮盖解决方案汇总
- 转铁蛋白(Tf)修饰去氢骆驼蓬碱磁纳米脂质体/香豆素-6脂质体/多柔比星脂质体
- FEMRL: A Framework for Large-Scale Privacy-Preserving Linkage of Patients’ Electronic Health Rec论文总结
- UE4 - 河流流体插件Fluid Flux
- WCF and TCP message communication practice, c # 】 【 realize group chat function
- C 语言 时间函数使用技巧(汇总)
- echart 特例-多分组X轴
猜你喜欢
【图像分类】2017-MobileNetV1 CVPR
Tf ferritin particles contain cisplatin / oxaliplatin / doxorubicin / methotrexate MTX / paclitaxel PTX and other drugs
Tf铁蛋白颗粒包载顺铂/奥沙利铂/阿霉素/甲氨蝶呤MTX/紫杉醇PTX等药物
Modern Privacy-Preserving Record Linkage Techniques: An Overview论文总结
[Natural Language Processing] [Vector Representation] PairSupCon: Pairwise Supervised Contrastive Learning for Sentence Representation
Transferrin (TF) Modified Paclitaxel (PTX) Liposomes (TF-PTX-LP) | Transferrin (Tf) Modified Curcumin Liposomes
【C#】WCF和TCP消息通信练习,实现群聊功能
Common ports and services
【LeetCode】42、接雨水
转铁蛋白(TF)修饰紫杉醇(PTX)脂质体(TF-PTX-LP)|转铁蛋白(Tf)修饰姜黄素脂质体
随机推荐
FEMRL: A Framework for Large-Scale Privacy-Preserving Linkage of Patients’ Electronic Health Rec论文总结
基于TCP的聊天系统
几行深度学习代码设计包含功能位点的候选免疫原、酶活性位点、蛋白结合蛋白、金属配位蛋白
2022 Hangdian Multi-School Seven Black Magic (Sign-in)
Linux服务器安装Redis,详细步骤。
铱钌合金/氧化铱仿生纳米酶|钯纳米酶|GMP-Pd纳米酶|金钯复合纳米酶|三元金属Pd-M-Ir纳米酶|中空金铂合金纳米笼核-多空二氧化硅壳纳米酶
Pt/CeO2单原子纳米酶|[email protected] NPs纳米酶|碳纳米管负载铂颗粒纳米酶|白血病拮抗多肽修饰的FeOPtPEG复合纳米酶
机器学习|模型评估——AUC
「POJ 3666」Making the Grade 题解(两种做法)
whois信息收集&企业备案信息
CMU博士论文 | 视频多模态学习:探索模型和任务复杂性
这7个自动化办公模版 教你玩转表格数据自动化
Transferrin (TF) Modified Paclitaxel (PTX) Liposomes (TF-PTX-LP) | Transferrin (Tf) Modified Curcumin Liposomes
leetcode 85.最大矩形 单调栈应用
“蔚来杯“2022牛客暑期多校训练营7 F
cordova installation error Command failed: powershell solution
【LeetCode】42、接雨水
zip文件协议解析
Ferritin particle-loaded raltitrexed/pemetrexed/sulfadesoxine/adamantane (scientific research reagent)
转铁蛋白修饰蛇床子素长循环脂质体/负载三七皂苷R1的PEG-PLGA纳米粒([email protected] NPs)