zencart如何清空商品演示数据和没有商品数据的sql执行语句
2010-10-14 23:43
447 查看
#清空商品商品、属性、分类
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;
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;
相关文章推荐
- zencart如何清空商品演示数据和没有商品数据的sql执行语句 zencart如何清空商品演示数据和没有商品数据的sql执行语句
- zencart+magento 如何清空商品演示数据和没有商品数据的sql执行语句
- zencart 清空商品演示数据和没有商品数据
- 如何检测mysql 数据库执行了哪些sql语句 ecshop如何添加商品属性 ecshop 商品属性批量采集入库
- 疑问:如何对内存中DataSet数据表执行Sql语句?
- PHP如何获取刚插入数据的ID 和判断SQL语句是否成功执行
- 使用SSH添加数据时执行了SQL语句数据库却什么都没有?
- 同样的一句SQL语句在pl/sql 代码块中count 没有数据,但是直接用SQl 执行却可以count 得到结果
- 如何在Oracle中一次执行多条sql语句
- 如何查看死锁时在执行的SQL语句
- 如何定位mysql中执行很慢的sql 语句
- Mybatis程序中执行和单独执行同一条SQL出现结果不一致(部分数据没有查询出来)
- 请问Enterprise Library如何执行带有参数的SQL语句(Generic Database)
- 如何查看,当运行一个hibernate 方法后到底执行了哪些SQL语句
- 如何监控执行的SQL语句?
- 如何写随机从表中抽一条数据的SQL语句
- Mysql bench执行sql语句批量操作数据所遇到的问题
- 如何通过sql日志,查看以前执行过的sql语句
- mysql小备忘:如何记录长时间执行的sql语句
- 使用SQL语句清空数据库所有表的数据