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
PHPzforward
2023-08-27 09:57:021196browse

如何只获取 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)

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete