opencart清除演示数据

本文提供了一系列用于清空特定电商数据库表的SQL命令,包括产品、订单、客户等关键业务数据表。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

TRUNCATE TABLE `oc_attribute`;
TRUNCATE TABLE `oc_attribute_description`;
TRUNCATE TABLE `oc_attribute_group`;
TRUNCATE TABLE `oc_attribute_group_description`;
TRUNCATE TABLE `oc_category`;
TRUNCATE TABLE `oc_category_description`;
TRUNCATE TABLE `oc_category_filter`;
TRUNCATE TABLE `oc_category_path`;
TRUNCATE TABLE `oc_category_to_layout`;
TRUNCATE TABLE `oc_category_to_store`;
TRUNCATE TABLE `oc_customer`;
TRUNCATE TABLE `oc_customer_ip`;
TRUNCATE TABLE `oc_customer_login`;
TRUNCATE TABLE `oc_dqc_statistic`;
TRUNCATE TABLE `oc_fb_logins`;
TRUNCATE TABLE `oc_order`;
TRUNCATE TABLE `oc_order_custom_field`;
TRUNCATE TABLE `oc_order_history`;
TRUNCATE TABLE `oc_order_option`;
TRUNCATE TABLE `oc_order_product`;
TRUNCATE TABLE `oc_order_total`;
TRUNCATE TABLE `oc_option`;
TRUNCATE TABLE `oc_option_description`;
TRUNCATE TABLE `oc_option_value`;
TRUNCATE TABLE `oc_option_value_description`;
TRUNCATE TABLE `oc_product`;
TRUNCATE TABLE `oc_product_attribute`;
TRUNCATE TABLE `oc_product_description`;
TRUNCATE TABLE `oc_product_discount`;
TRUNCATE TABLE `oc_product_image`;
TRUNCATE TABLE `oc_product_option`;
TRUNCATE TABLE `oc_product_option_value`;
TRUNCATE TABLE `oc_product_reward`;
TRUNCATE TABLE `oc_product_special`;
TRUNCATE TABLE `oc_product_tag`;
TRUNCATE TABLE `oc_product_to_category`;
TRUNCATE TABLE `oc_product_to_download`;
TRUNCATE TABLE `oc_product_to_layout`;
TRUNCATE TABLE `oc_product_to_store`;
TRUNCATE TABLE `oc_tags`;
TRUNCATE TABLE `oc_tags_description`;
DELETE FROM `oc_url_alias` WHERE `query` LIKE 'product_id=%';
DELETE FROM `oc_url_alias` WHERE `query` LIKE 'category_id=%';

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值