Get Only Table Names from MySQL Database



With the help of SHOW TABLES command, we can get only the name having no other information about the tables. For example, we can see the list of tables in a database named tutorial as follows −

mysql> show tables;
+--------------------+
| Tables_in_tutorial |
+--------------------+
| student            |
+--------------------+
1 row in set (0.00 sec)
Updated on: 2020-06-22T05:12:48+05:30

113 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements