当前位置:网站首页>如何查询mysql中所有表
如何查询mysql中所有表
2022-06-21 18:27:00 【亿速云】
如何查询mysql中所有表
这篇文章主要介绍“如何查询mysql中所有表”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“如何查询mysql中所有表”文章能帮助大家解决问题。
查询mysql数据库中所有表的方法:1、执行“mysql -u root -p”命令并输入密码来登录mysql数据库服务器;2、执行“USE 数据库名;”命令来切换到指定数据库;3、执行“show tables;”或“SHOW FULL TABLES;”命令,会以表格形式列出mysql数据库中的所有表。

本教程操作环境:windows7系统、mysql8版本、Dell G3电脑。
在mysql中,可以利用SHOW TABLES语句来查询数据库中的所有表;该语句在MySQL数据库中列出所有表。
查询步骤:
1、执行以下命令来登录mysql数据库服务器
mysql -u root -p

2、切换到指定数据库(mydb):
USE mydb;

3、列出mydb数据库中的所有表:
show tables;

可以看到,mydb数据库中有4个表:contacts、mip_demo、tb_dept、users
SHOW TABLES命令可显示表是基表还是视图。 要在结果中包含表类型,请使用SHOW FULL TABLES语句,如下所示 -

关于“如何查询mysql中所有表”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注亿速云行业资讯频道,小编每天都会为大家更新不同的知识点。
边栏推荐
- Write down some pat topics (I)
- 尚硅谷 尚硅谷 | 什么是ClickHouse表引擎 Memory和Merge
- 婴儿名字[连通分量之邻接矩阵与DFS]
- Cloudcompare & PCL calculates transformation matrix based on matching points
- Simple use of JS
- Model evaluation and selection of machine learning
- CloudCompare&PCL 点云AABB包围盒
- Source code analysis of ArrayList
- 如何在Chrome浏览器中临时修改SameSite=None和Secure
- R language uses the statstack function of epidisplay package to view the statistics (mean, median, etc.) and corresponding hypothesis tests of continuous variables in a hierarchical manner based on fa
猜你喜欢

Flink 系例 之 TableAPI & SQL 与 示例模块

出院小结识别api接口-医疗票据OCR识别/出院诊断记录/电子病历/理赔服务

汇编语言贪吃蛇、俄罗斯方块双任务设计实现详解(三)——俄罗斯方块详细设计

508. Most Frequent Subtree Sum

Datagear uses coordinate mapping table to make geographic coordinate data visualization Kanban

如何在Chrome浏览器中临时修改SameSite=None和Secure

删除倒数第k个节点-链表专题

谷歌浏览器80版本以后,如何处理出现的问题SameSite跨域问题
![[cvpr2022] CMU tutorial on multimodal machine learning, 200+ pages to explain the knowledge of multimodal learning system with six challenges of representation, alignment, reasoning, migration, genera](/img/f6/6685902fca43163cb63cf2c55d76c6.jpg)
[cvpr2022] CMU tutorial on multimodal machine learning, 200+ pages to explain the knowledge of multimodal learning system with six challenges of representation, alignment, reasoning, migration, genera

研报精选 | 麦肯锡《中国数字创新未来》趋势解读
随机推荐
医疗费用清单秒速录入,OCR识别助力效率倍增
理财产品到期当日能赎回吗?
R language uses the statstack function of epidisplay package to view the statistics (mean, median, etc.) and corresponding hypothesis tests of continuous variables in a hierarchical manner based on fa
Recycleview lazy load failure
《安富莱嵌入式周报》第270期:2022.06.13--2022.06.19
记一些PAT题目(一)
Forwarding to remind metamask how to deal with the potential private key disclosure of the expansion program
ArrayList源码解析
函子(Functor)
Clustering, dimension reduction and measurement techniques for machine learning
After the 80 version of Google browser, how to deal with the problem samesite cross domain problem
RecycleView懒加载失效问题(二)
Technology sharing | mysql:caching_ sha2_ Password quick Q & A
Kubernetes migration of persistent volumes across storageclasses Complete Guide
gorm数据库是否需要设置外键
RecycleView懒加载失效问题
Linux MySQL command
flink-connector-mysql-cdc-2.2.0,生成全量快照阶段,是按照Table
在 KubeSphere 上部署 Apache Pulsar
1157 Anniversary