How can we get only the name having no other details about the tables in 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: 22-Jun-2020

71 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements