当前位置:网站首页>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?
边栏推荐
猜你喜欢
随机推荐
Parquet encoding
Zabbix设置邮件告警+企业微信告警
Utilities of Ruineng Micrometer Chip RN2026
多线程间的通信方式你知道几种?
0.1 前言
如何在MySQL中的数据库下删除所有的表
【Playwright测试教程】5分钟上手
Dong mingzhu live cold face away, when employees frequency low-level mistakes, no one can understand their products
单片机C语言->的用法,和意思
In a more general sense, calculating the displacement distance and assumptions
Oracle迁移到瀚高之后,空值问题处理
pytorch applied to MNIST handwritten font recognition
Engineering drawing review questions (with answers)
STM8S-----选项字节
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
Simple record of Flink principle flow chart
小程序:扫码打开参数解析
QNX Hypervisor 2.2 user manual] 10.1 gm vdev options
Parquet encoding
小甲鱼汇编笔记









