• 【ecshop】使用sql 清除测试数据


    操作方式:后台->数据库->sql查询   输入以下你想进行的操作

    --
    -- 清空会员有关数据:
    --
    TRUNCATE TABLE `ecs_users` ;
    TRUNCATE TABLE `ecs_user_account` ;
    TRUNCATE TABLE `ecs_user_bonus` ;
    TRUNCATE TABLE `ecs_user_address` ;
    TRUNCATE TABLE `ecs_pay_log` ;
    TRUNCATE TABLE `ecs_order_info` ;
    TRUNCATE TABLE `ecs_order_goods` ;
    TRUNCATE TABLE `ecs_order_action` ;
    TRUNCATE TABLE `ecs_feedback` ;
    TRUNCATE TABLE `ecs_delivery_goods`;
    TRUNCATE TABLE `ecs_delivery_order` ;
    TRUNCATE TABLE `ecs_comment` ;
    TRUNCATE TABLE `ecs_collect_goods` ;
    TRUNCATE TABLE `ecs_back_goods` ;
    TRUNCATE TABLE `ecs_back_order` ;
    TRUNCATE TABLE `ecs_admin_log` ;
    TRUNCATE TABLE `ecs_account_log` ;
    TRUNCATE TABLE `ecs_cart` ;
    --
    -- 清空商品有关数据 
    --
    TRUNCATE TABLE `ecs_goods` ;
    TRUNCATE TABLE `ecs_goods_activity` ;
    TRUNCATE TABLE `ecs_goods_activity` ;
    TRUNCATE TABLE `ecs_goods_article` ;
    TRUNCATE TABLE `ecs_goods_attr` ;
    TRUNCATE TABLE `ecs_goods_cat` ;
    TRUNCATE TABLE `ecs_goods_gallery` ;
    TRUNCATE TABLE `ecs_goods_type` ;
    TRUNCATE TABLE `ecs_group_goods` ;
    TRUNCATE TABLE `ecs_keywords` ;
    TRUNCATE TABLE `ecs_products` ;
    TRUNCATE TABLE `ecs_brand` ;
    TRUNCATE TABLE `ecs_card` ;
    TRUNCATE TABLE `ecs_exchange_goods` ;
    TRUNCATE TABLE `ecs_link_goods` ;
    TRUNCATE TABLE `ecs_package_goods` ;
    
    --
    -- 清空分类有关数据
    --
    TRUNCATE TABLE `ecs_category` ;
    TRUNCATE TABLE `ecs_cat_recommend` ;
    
    --
    -- 清空商品类型有关数据
    --
    TRUNCATE TABLE `ecs_attribute` ;
  • 相关阅读:
    struts2 标签给iterator添加自然序号
    theirtts2
    zhihutheirTTS1
    theirs《A 2019 Guide to Speech Synthesis with Deep Learning》
    theirmvsnetv00000
    theirmvsnetv2
    theirMeshCNN/
    their MVF-Net: Multi-View 3D Face Morphable Model Regression(2019 CVPR)
    their DenseFusion6dof
    C++35
  • 原文地址:https://www.cnblogs.com/richerdyoung/p/7117600.html
Copyright © 2020-2023  润新知