Mysql truncate 清空数据库里某个表里面的数据

清空数据表使用命令:

Truncate 表名;

下面是是清空 sales_flat_creditmemo 表的数据

mysql> Truncate sales_flat_creditmemo;
清空表数据

清空 amasty_storecredit_customer_balance_history 表的数据

mysql> Truncate amasty_storecredit_customer_balance_history;

Leave a Reply

您的邮箱地址不会被公开。 必填项已用 * 标注