About 9,500,000 results
Open links in new tab
  1. How to Show/List Tables in MySQL Database - GeeksforGeeks

    Jun 11, 2024 · In MySQL, The SHOW TABLES command is used to list the tables in a specific database. It provides a simple way to see the tables that exist within a database without having to query the database schema directly.

  2. Get table names using SELECT statement in MySQL

    Besides using the INFORMATION_SCHEMA table, to use SHOW TABLES to insert into a table you would use the following. $sql = "SHOW TABLES FROM $dbname"; $result = mysql_query($sql); $arrayCount = 0. while ($row = mysql_fetch_row($result)) { $tableNames[$arrayCount] = $row[0]; $arrayCount++; //only do this to make sure it …

  3. MySQL SHOW TABLES: List Tables In a MySQL Database - MySQL

    Summary: in this tutorial, you will learn how to use the MySQL SHOW TABLES command to query tables in a particular database. To list tables in a MySQL database, you follow these steps: Second, switch to a specific database using the USE …

  4. 4 Ways to List All Tables in a MySQL Database

    Mar 1, 2022 · Below are four ways to list out the tables in a MySQL database using SQL or the command line. The SHOW TABLES Command. The SHOW TABLES command lists the non-TEMPORARY tables and views in a given database: SHOW TABLES; Result:

  5. How to SHOW or LIST Tables in MySQL - {coding}Sight

    Jul 26, 2021 · There are two primary methods to view the tables in MySQL: The MYSQL SHOW TABLES command. Querying the Information_schema.tables table. In this article, we are going to explore them both. The show tables command displays the list of all tables created in a database. The syntax is as follows: [{FROM} database_name] [LIKE 'DBNamePattern']

  6. MySQL :: MySQL 8.0 Reference Manual :: 15.7.7.39 SHOW TABLES

    SHOW TABLES lists the non- TEMPORARY tables in a given database. You can also get this list using the mysqlshow db_name command. The LIKE clause, if present, indicates which table names to match. The WHERE clause can be given to select rows using more general conditions, as discussed in Section 28.8, “Extensions to SHOW Statements”.

  7. List Tables in a Database Using SHOW TABLES in MySQL

    This article describes how to use the SHOW TABLES statement list all tables in a specified database. Sometimes, you need to know how many tables are there in the current database, or check whether a specified table exists in the current database.

  8. MySQL Show Tables Statement - Online Tutorials Library

    In MySQL, we use the SHOW TABLES command to retrieve the names of tables that are present in a specific database. This command is useful in various situations, such as: When we want to view names of tables present in a database to verify if a specific table exists or not.

  9. 5.4 Getting Information About Databases and Tables - MySQL

    You can obtain the CREATE TABLE statement necessary to create an existing table using the SHOW CREATE TABLE statement. See Section 15.7.7.12, “SHOW CREATE TABLE Statement”. If you have indexes on a table, SHOW INDEX FROM tbl_name produces information about them. See Section 15.7.7.24, “SHOW INDEX Statement”, for more about this statement.

  10. How to get all existing tables in the MySQL database - MySQL

    Run this statement using any MySQL client like phpMyAdmin etc and get all existing tables. Take an example, this will show you all existing tables in the current database: If you want to get existing tables of another database instead of current database, take the following example. This will show you all tables of named database.

  11. Some results have been removed
Refresh