zencart如何批量删除商品,分类,属性,详细描述?
2012-03-07 21:46
501 查看
zc_install/index.php ,简单而彻底。
如果要手动删除部分数据,参考下面的脚本。
# ——————————————————–
# 功能:清空Zen Cart中文版1.3.x的演示数据
# 提醒:请做好备份 !!!
# 使用:管理页面 -> 工具 -> 执行SQL脚本
# ——————————————————–
#清空订单和注册:
truncate table address_book;
truncate table admin_activity_log;
truncate table counter;
truncate table counter_history;
truncate table customers;
truncate table customers_basket;
truncate table customers_basket_attributes;
truncate table customers_info;
truncate table customers_wishlist;
truncate table db_cache;
truncate table ips_sessions;
truncate table ips_transactions;
truncate table orders;
truncate table orders_products;
truncate table orders_products_attributes;
truncate table orders_products_download;
truncate table orders_status_history;
truncate table orders_total;
truncate table paypal;
truncate table paypal_payment_status_history;
truncate table paypal_session;
truncate table paypal_testing;
truncate table seo_cache;
truncate table sessions;
truncate table whos_online;
# 清空商品分类、商品、属性(Nike Air Max 2011)
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_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;
=========================================================================================================
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_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;
TRUNCATE TABLE meta_tags_categories_description
TRUNCATE TABLE meta_tags_products_description
TRUNCATE TABLE products
如果要手动删除部分数据,参考下面的脚本。
# ——————————————————–
# 功能:清空Zen Cart中文版1.3.x的演示数据
# 提醒:请做好备份 !!!
# 使用:管理页面 -> 工具 -> 执行SQL脚本
# ——————————————————–
#清空订单和注册:
truncate table address_book;
truncate table admin_activity_log;
truncate table counter;
truncate table counter_history;
truncate table customers;
truncate table customers_basket;
truncate table customers_basket_attributes;
truncate table customers_info;
truncate table customers_wishlist;
truncate table db_cache;
truncate table ips_sessions;
truncate table ips_transactions;
truncate table orders;
truncate table orders_products;
truncate table orders_products_attributes;
truncate table orders_products_download;
truncate table orders_status_history;
truncate table orders_total;
truncate table paypal;
truncate table paypal_payment_status_history;
truncate table paypal_session;
truncate table paypal_testing;
truncate table seo_cache;
truncate table sessions;
truncate table whos_online;
# 清空商品分类、商品、属性(Nike Air Max 2011)
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_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;
=========================================================================================================
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_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;
TRUNCATE TABLE meta_tags_categories_description
TRUNCATE TABLE meta_tags_products_description
TRUNCATE TABLE products
相关文章推荐
- zencart批量删除商品,分类,属性,详细描述
- zencart 如何获取商品的分类名及ID
- 如何检测mysql 数据库执行了哪些sql语句 ecshop如何添加商品属性 ecshop 商品属性批量采集入库
- 设置批量商品优惠、如何修改ZenCart产品显示图片的大小
- ecshop商品详细描述页,批量上传图片功能实现
- magento -- 如何删除所有商品和分类
- ECSHOP 如何删除商品列表页 购买弹出 商品属性框后面的价格
- Ecshop如何把后台编辑器中商品详细描述中上传的图片分目录保存
- 如何采集京东商城的商品 多图 自动分类 自动去水印 多属性自动入库
- 如何实现批量删除商品
- [导入]Asp.Net 文件操作基类(读取,删除,批量拷贝,删除,写入,获取文件夹大小,文件属性,遍历目录)(二)
- 如何给magento的产品分类创建一个自定义属性?
- ECShop商品批量上传详细说明及上传图片注意事项
- zencart商品批量设置为免运费
- VC6 如何删除属性或方法 -ATL
- Win7系统如何批量删除C盘log日志文件?Win7系统批量删除C盘log日志文件的方法
- Win7中如何批量删除字体?
- 如何在DataGrid控件中实现编辑、删除、分类以及分页操作
- Asp.Net 文件操作基类(读取,删除,批量拷贝,删除,写入,获取文件夹大小,文件属性,遍历目录)
- js 如何删除对象中的一个属性