当前位置:网站首页>How to drop all tables under database in MySQL
How to drop all tables under database in MySQL
2022-08-04 02:34:00 【CSDN q&a】
How to delete all tables under a database in MySQL

SELECT concat('DROP TABLE IF EXISTS ', table_name, ';')
-> FROM information_schema.tables
-> WHERE table_schema = 'u';

Results in Xshell

Why does VMware report an error with this command, but the result can be displayed in Xshell?
In Xshell, only a statement to delete a table can appear, but in WMware, copy and paste cannot be performed. How to use one command in WMware to delete all tables under the database?
边栏推荐
- Flutter3.0线程——四步教你如何全方位了解(事件队列)
- ssh服务详解
- Kubernetes:(九)coredns(浪不动了)
- C语言--环形缓存区
- 22/8/3(板子)树状dp板子+中国剩余定理+求组合数3,4+容斥原理
- Small Turtle Compilation Notes
- Promise solves blocking synchronization and turns asynchronous into synchronous
- Oracle迁移到瀚高之后,空值问题处理
- 【指针内功修炼】深度剖析指针笔试题(三)
- Engineering drawing review questions (with answers)
猜你喜欢

halcon自定义函数基本操作

Parquet encoding

实例039:有序列表插入元素

Kubernetes:(十一)KubeSphere的介绍和安装(华丽的篇章)

小程序+新零售,玩转行业新玩法!

Web APIs BOM - operating browser: swiper plug-in

实例038:矩阵对角线之和

In the season of going overseas, the localization of Internet tips for going overseas

单片机C语言->的用法,和意思

esp32 releases robot battery voltage to ros2 (micro-ros+CoCube)
随机推荐
自制蓝牙手机app控制stm8/stm32/C51板载LED
Oracle迁移到瀚高之后,空值问题处理
halcon自定义函数基本操作
第13章 网络安全漏洞防护技术原理与应用
参加Oracle OCP和MySQL OCP考试的学员怎样在VUE预约考试
[QNX Hypervisor 2.2 User Manual] 10.3 vdev gic
Big guys, it takes a long time to read mysql3 million single tables, what parameters can be discounted, or is there any way to hurry up
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
Pine脚本 | 如何显示和排版绘图开关?
0.1 前言
MallBook联合人民交通出版社,推动驾培领域新发展,开启驾培智慧交易新生态
Parquet encoding
Example: 036 is a prime number
内网穿透-应用
Flask Framework Beginner-06-Add, Delete, Modify and Check the Database
golang中的unsafe.Pointer,指针,引用
Example 037: Sorting
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
QNX Hypervisor 2.2用户手册]10.2 vdev 8259
【原创】启动Win10自带的XPS/OXPS阅读器