zoukankan      html  css  js  c++  java
  • zencart 清空商品演示数据和没有商品数据

    在后台:工具(tools)—履行SQL(install SQL paths),

    其中清空商品屬性這一行疏忽掉,畢竟屬性照樣要用到的,代碼以下:

    # 清空商品分類、商品、屬性
    TRUNCATE TABLE categories;
    TRUNCATE TABLE categories_description;

    # 清空商品以及屬性
    TRUNCATE TABLE media_clips;
    TRUNCATE TABLE media_manager;
    TRUNCATE TABLE media_to_products;
    TRUNCATE TABLE media_types;
    TRUNCATE TABLE music_genre;
    TRUNCATE TABLE product_music_extra;
    TRUNCATE TABLE product_types_to_category;
    TRUNCATE TABLE products;
    TRUNCATE TABLE products_attributes;
    TRUNCATE TABLE products_attributes_download;
    TRUNCATE TABLE products_description;
    TRUNCATE TABLE products_discount_quantity;
    TRUNCATE TABLE products_notifications;
    TRUNCATE TABLE products_options;
    # TRUNCATE TABLE products_options_types;
    TRUNCATE TABLE products_options_values;
    TRUNCATE TABLE products_options_values_to_products_options;
    TRUNCATE TABLE products_to_categories;
    TRUNCATE TABLE record_artists;
    TRUNCATE TABLE record_artists_info;
    TRUNCATE TABLE record_company;
    TRUNCATE TABLE record_company_info;

    # 清空舉薦商品
    TRUNCATE TABLE featured;

    # 清空促銷商品
    TRUNCATE TABLE salemaker_sales;

    # 清空特價商品
    TRUNCATE TABLE specials;

    # 清空總體價格
    TRUNCATE TABLE group_pricing;

    # 清空廠家及材料
    TRUNCATE TABLE manufacturers;
    TRUNCATE TABLE manufacturers_info;

    # 清空客戶批駁
    TRUNCATE TABLE reviews;
    TRUNCATE TABLE reviews_description;

  • 相关阅读:
    BZOJ1862: [Zjoi2006]GameZ游戏排名系统
    BZOJXXXX: [IOI2000]邮局——四边形不等式优化初探
    BZOJ1801: [Ahoi2009]chess 中国象棋
    BZOJ1505: [NOI2004]小H的小屋
    BZOJ1899: [Zjoi2004]Lunch 午餐
    BZOJ1057: [ZJOI2007]棋盘制作
    BZOJ1100: [POI2007]对称轴osi
    BZOJ1123: [POI2008]BLO
    线性规划之单纯形讲解
    BZOJ 3265 志愿者招募加强版(单纯形)
  • 原文地址:https://www.cnblogs.com/waimaole/p/3016221.html
Copyright © 2011-2022 走看看