当前位置:网站首页>如何在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中使用一条命令删除数据库下的所有表呢?
边栏推荐
猜你喜欢

Example 037: Sorting

Flask Framework Beginner-06-Add, Delete, Modify and Check the Database

Flask Framework Beginner-05-Command Management Manager and Database Use

工程制图复习题

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

Example 039: Inserting elements into an ordered list

2022G1工业锅炉司炉考试练习题及模拟考试

Qt中对象树的机制介绍以及底层实现,各种结果分析:(以及自己写容易犯错的点)

Example 040: Reverse List

priority_queue元素为指针时,重载运算符失效
随机推荐
STM32-遥感数据处理
v-model
【原创】启动Win10自带的XPS/OXPS阅读器
Continuing to pour money into commodities research and development, the ding-dong buy vegetables in win into the supply chain
Variable string
Development of Taurus. MVC WebAPI introductory tutorial 1: download environment configuration and operation framework (including series directory).
Zabbix set up email alert + enterprise WeChat alert
The browser
JS 保姆级贴心,从零教你手写实现一个防抖debounce方法
QNX Hypervisor 2.2用户手册]10.2 vdev 8259
Continuing to invest in product research and development, Dingdong Maicai wins in supply chain investment
MallBook 助力SKT思珂特教育集团,立足变化,拥抱敏捷交易
Qt中对象树的机制介绍以及底层实现,各种结果分析:(以及自己写容易犯错的点)
出海季,互联网出海锦囊之本地化
initramfs详解----添加硬盘驱动并访问磁盘
实例041:类的方法与变量
共n级台阶,每次可以上1级或2级台阶,有多少种上法?
Sky map coordinate system to Gaode coordinate system WGS84 to GCJ02
C# 构造函数业务场景测试项目
QNX Hypervisor 2.2用户手册]10.1 通用vdev选项