Home > Database > Mysql Tutorial > body text

How to delete MySQL temporary table?

WBOY
Release: 2023-09-02 11:49:06
forward
672 people have browsed it

How to delete MySQL temporary table?

#We know that if the current session is terminated, the MySQL temporary table will be deleted. But still between sessions we want to drop the temporary table and instead with the help of DROP statement we can drop 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)
Copy after login

above The query will delete the table, it can be confirmed from the query below -

mysql> Select * from SalesSummary;
ERROR 1146 (42S02): Table 'query.SalesSummary doesn't exist
Copy after login

The above is the detailed content of How to delete MySQL temporary table?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!