当前位置:网站首页>如何在MySQL中的数据库下删除所有的表
如何在MySQL中的数据库下删除所有的表
2022-08-04 02:28:00 【CSDN问答】
如何在MySQL中的数据库下删除所有的表

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

Xshell中的结果

用此条命令为什么VMware中报错,但是Xshell中可以显示出结果呢?
在Xshell中只能出现删除表的语句,但是在WMware中,不能进行复制粘贴,如何在WMware中使用一条命令删除数据库下的所有表呢?
边栏推荐
- 【原创】启动Win10自带的XPS/OXPS阅读器
- 工程制图名词解释-重点知识
- 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
- What is the source of flinkcdc consuming mysql binlog data without sqltype=delete
- MallBook 助力SKT思珂特教育集团,立足变化,拥抱敏捷交易
- 可变字符串
- 出海季,互联网出海锦囊之本地化
- 工程制图复习题(带答案)
- web端动效 lottie-web 使用
- flask框架初学-06-对数据库的增删改查
猜你喜欢

实例038:矩阵对角线之和

计算首屏时间

mpf5_定价Bond_yield curve_Spot coupon_duration_有效利率_连续复利_远期_Vasicek短期_CIR模型Derivatives_Tridiagonal_ppf

Example 040: Reverse List

一篇文章看懂JS闭包,从执行上下文角度解析有趣的闭包

持续投入商品研发,叮咚买菜赢在了供应链投入上

Security First: Tools You Need to Know to Implement DevSecOps Best Practices

工程制图复习题(带答案)

关联接口测试

一个注解替换synchronized关键字:分布式场景下实现方法加锁
随机推荐
织梦内核电动伸缩门卷闸门门业公司网站模板 带手机版【站长亲测】
Example 035: Setting the output color
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
this巩固训练,从两道执行题加深理解闭包与箭头函数中的this
倒计时2天,“文化数字化战略新型基础设施暨文化艺术链生态建设发布会”启幕在即
Example: 036 is a prime number
5. Scrapy middleware & distributed crawler
2022广东省安全员A证第三批(主要负责人)考试题库及模拟考试
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
ssh服务详解
2022年T电梯修理考题及答案
浏览器存储
Variable string
halcon自定义函数基本操作
持续投入商品研发,叮咚买菜赢在了供应链投入上
简单排序(暑假每日一题 14)
The browser
html select标签赋值数据库查询结果
JS 保姆级贴心,从零教你手写实现一个防抖debounce方法