借助 SHOW TABLES From Database_name查询,我们可以看到另一个数据库的表。这里Database_name是我们当前未使用的数据库的名称。请看以下示例,在该示例中,我们运行查询以获取数据库名称“ tutorial”中的表的列表。
mysql> show tables from tutorial; +--------------------+ | Tables_in_tutorial | +--------------------+ | employee | | showzerofill | | student | +--------------------+ 3 rows in set (0.00 sec)