View List of Tables in Another MySQL Database



With the help of SHOW TABLES From Database_name query, we can see the tables of another database. Here Database_name is the name of the database which we are not using currently. Consider the following example in which we run the query for getting the list of tables in database name ‘tutorial’.

mysql> show tables from tutorial;
+--------------------+
| Tables_in_tutorial |
+--------------------+
| employee           |
| showzerofill       |
| student            |
+--------------------+
3 rows in set (0.00 sec)
Updated on: 2020-02-13T10:16:22+05:30

159 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements