Title: Getting database tables names in array.
Last modified: August 22, 2016

---

# Getting database tables names in array.

 *  [fffkral](https://wordpress.org/support/users/fffkral/)
 * (@fffkral)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/get-database-tables-names-in-array/)
 * Hi
    How to get db tables name in plugin by array format?? I too have tried blow
   ways recently several hours but don’t get result!!
 *     ```
       //global $wpdb;
       //$res=$wpdb->query("SHOW TABLES");
       //$res=$wpdb->get_results("SHOW TABLES");
   
       //$res=$wpdb->query("SELECT table_name FROM information_schema.tables");
       //$res=$wpdb->get_results("SELECT table_name FROM information_schema.tables");
       ```
   
 * Please Help Me.

The topic ‘Getting database tables names in array.’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [fffkral](https://wordpress.org/support/users/fffkral/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/get-database-tables-names-in-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
