opencart清除演示資料
阿新 • • 發佈:2018-11-16
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=%';