Home > Database > Mysql Tutorial > body text

When connected to one MySQL database, how to view the table list of other MySQL databases?

王林
Release: 2023-09-15 22:49:06
forward
937 people have browsed it

When connected to one MySQL database, how to view the table list of other MySQL databases?

With the SHOW TABLES From Database_name query, we can see the tables of another database. Here Database_name is the name of the database we are not currently using. Consider the following example where we run a query to get the list of tables in the database name "tutorial".

mysql> show tables from tutorial;
+--------------------+
| Tables_in_tutorial |
+--------------------+
| employee           |
| showzerofill       |
| student            |
+--------------------+
3 rows in set (0.00 sec)
Copy after login

The above is the detailed content of When connected to one MySQL database, how to view the table list of other MySQL databases?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!