• zencart如何清空商品演示数据和没有商品数据的sql执行语句 zencart如何清空商品演示数据和没有商品数据的sql执行语句


    清空商品商品、属性、分类

    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 reviews;

    TRUNCATE TABLE reviews_description;

    # 清空推荐商品

    TRUNCATE TABLE featured;

    # 清空厂家及资料

    TRUNCATE TABLE manufacturers;

    TRUNCATE TABLE manufacturers_info;

    # 清空团体价格

    TRUNCATE TABLE group_pricing;

    # 清空促销商品

    TRUNCATE TABLE salemaker_sales;

    # 清空特价商品

    TRUNCATE TABLE specials;

    删除指定类目下的所有商品,但是不删除该类目

    delete from ‘products’ WHERE master_categories_id=21     21是要删除的哪个类ID,后台可以看到。

  • 相关阅读:
    SQLite剖析之功能特性
    SQLite剖析之内核研究
    SQLite剖析之体系结构
    SQLite安装、编译与应用
    实验四 数据库查询--2
    Linux监控一之Nagios的安装与配置
    keepalived原理(主从配置+haproxy)及配置文件详解
    负载均衡之Haproxy配置详解(及httpd配置)
    使用HeartBeat实现高可用HA的配置过程详解
    在Linux安装配置Tomcat 并部署web应用 ( 三种方式 )
  • 原文地址:https://www.cnblogs.com/lookyou/p/2141997.html
Copyright © 2020-2023  润新知