Home > Database > Mysql Tutorial > How to get only the name of a table in a MySQL database without other details?

How to get only the name of a table in a MySQL database without other details?

PHPz
Release: 2023-08-27 09:57:02
forward
1203 people have browsed it

如何只获取 MySQL 数据库中表的名称,而没有其他详细信息?

With the SHOW TABLES command, we can only get the name of the table, but no other information about the table. For example, we can see the list of tables in the database named tutorial as shown below -

mysql> show tables;
+--------------------+
| Tables_in_tutorial |
+--------------------+
| student            |
+--------------------+
1 row in set (0.00 sec)
Copy after login

The above is the detailed content of How to get only the name of a table in a MySQL database without other details?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template