当前位置:网站首页>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?
边栏推荐
- Instance, 038: the sum of the diagonal matrix
- 贪吃蛇游戏Bug解析及功能扩展
- 系统太多,多账号互通如何实现?
- 验证码业务逻辑漏洞
- sudo 权限控制,简易
- Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
- 安全至上:落地DevSecOps最佳实践你不得不知道的工具
- Good bosses, please ask the flink CDC oracle to Doris, found that the CPU is unusual, a run down
- Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
- 多线程间的通信方式你知道几种?
猜你喜欢

Flutter3.0线程——四步教你如何全方位了解(事件队列)

【学习笔记之菜Dog学C】动态内存管理

MallBook联合人民交通出版社,推动驾培领域新发展,开启驾培智慧交易新生态

flask框架初学-06-对数据库的增删改查

共n级台阶,每次可以上1级或2级台阶,有多少种上法?

SAP SD module foreground operation

Ant - the design of the Select component using a custom icon (suffixIcon attribute) suffixes, click on the custom ICONS have no reaction, will not display the drop-down menu

uni-app 从零开始-基础模版(一)

Example 037: Sorting

activiti流程执行过程中,数据库表的使用关系
随机推荐
共n级台阶,每次可以上1级或2级台阶,有多少种上法?
Security First: Tools You Need to Know to Implement DevSecOps Best Practices
DDTL: Domain Transfer Learning at a Distance
The idea of the diagram
APP电商如何快速分润分账?
Instance, 038: the sum of the diagonal matrix
Example 037: Sorting
pytorch应用于MNIST手写字体识别
各位大佬好,麻烦问一下flink cdc oracle写入doris的时候,发现cpu异常,一下下跑
The browser
异步编程解决方案 Generator生成器函数、iterator迭代器、async/await、Promise
v-model
实例040:逆序列表
浏览器存储
2022广东省安全员A证第三批(主要负责人)考试题库及模拟考试
pytorch applied to MNIST handwritten font recognition
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
什么是SVN(Subversion)?
Flask Framework Beginner-05-Command Management Manager and Database Use
P3384 【模板】轻重链剖分/树链剖分