Pratik Gujarathi
Pratik Gujarathi

Reputation: 768

How to retrieve table names from database in mysql?

I want to retrieve table names from the database. I am using the phpmyadmin database. What query should be used?

Upvotes: 2

Views: 178

Answers (1)

codaddict
codaddict

Reputation: 454930

You can make use of MySQL show tables as:

SHOW TABLES FROM db_name

Output of SHOW TABLES contains a single column of table names.

Upvotes: 4

Related Questions