Truncate all tables in a MySQL database in one command?(用一个命令截断 MySQL 数据库中的所有表?)
问题描述
是否有查询(命令)在一次操作中截断数据库中的所有表?我想知道我是否可以通过一个查询来做到这一点.
Is there a query (command) to truncate all the tables in a database in one operation? I want to know if I can do this with one single query.
推荐答案
Drop (i.e. remove tables)
截断(即空表)
这篇关于用一个命令截断 MySQL 数据库中的所有表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!