Reputation: 768
I want to retrieve table names from the database. I am using the phpmyadmin database. What query should be used?
Upvotes: 2
Views: 178
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