
- 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 delete MySQL temporary table?
As we know that MySQL temporary table would be deleted if the current session is terminated. But of still in between the session we want to delete the temporary table than with the help of the DROP statement we can delete the temporary table. It can be understood with the help of the following example −
Example
In this example, we are deleting the temporary table named ‘SalesSummary’ −
mysql> DROP TABLE SalesSummary; Query OK, 0 rows affected (0.00 sec)
The above query will delete the table and it can be confirmed from the query below −
mysql> Select * from SalesSummary; ERROR 1146 (42S02): Table 'query.SalesSummary doesn't exist
- Related Articles
- How can I create a stored procedure to delete values from a MySQL table?
- How can I see the description of a MySQL Temporary Tables?
- How can we create a MySQL temporary table by using PHP script?
- How can we delete multiple rows from a MySQL table?
- How can we delete all rows from a MySQL table?
- How to list temporary table columns in MySQL?
- How can we delete a single row from a MySQL table?
- How can we delete an existing MySQL table by using PHP script?
- How can you delete a table from a database in MySQL Python?
- How can you delete a record from a table using MySQL in Python?
- Create a temporary table in a MySQL procedure?
- Create a temporary table with dates in MySQL
- How to delete a temporary file in Java?
- How can I make a table in MySQL called “order”?
- How can I reimplement JavaScript delete method?

Advertisements