
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How can I see the description of a MySQL Temporary Tables?
We can check the description of a MySQL temporary table with the help of DESCRIBE statement, which is used to get the descriptions of other MySQL tables. With the help of the following example, we can illustrate it −
Example
mysql> DESCRIBE SalesSummary; +------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------------+------------------+------+-----+---------+-------+ | product_name | varchar(50) | NO | | NULL | | | total_sales | decimal(12,2) | NO | | 0.00 | | | avg_unit_price | decimal(7,2) | NO | | 0.00 | | | total_units_sold | int(10) unsigned | NO | | 0 | | +------------------+------------------+------+-----+---------+-------+ 4 rows in set (0.00 sec)
The above result set has the description of the temporary table ‘SalesSummary.
- Related Articles
- How can we see MySQL temporary tables in the list of tables?
- While connecting to one MySQL database, how can I see the list of tables of other MySQL database?
- What are MySQL Temporary Tables? How can we create them?
- How can I delete MySQL temporary table?
- How can I merge two MySQL tables?
- How can I change the default sort order of MySQL tables?
- How Can I check the size of the tables in a particular MySQL database?
- How can I get the output of multiple MySQL tables from a single query?
- How can I the date of creation and updation of tables in MySQL?
- How can I see global locks in MySQL (innodb)?
- How can I see the CREATE TABLE statement of an existing MySQL table?
- How can I sum columns across multiple tables in MySQL?
- Update column data without using temporary tables in MySQL?
- What happens to MySQL temporary tables if MySQL session is ended?
- How can I describe all tables in the database through a single statement in MySQL?

Advertisements