How does zencart clear commodity demo data and SQL Execution statement without commodity data zencart how to clear commodity demo data and SQL Execution statement without commodity data

Source: Internet
Author: User

Clear product items, attributes, and categories

Truncate table categories;

Truncate table categories_description;

# Clearing items and attributes

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;

# Clear customer comments

Truncate table reviews;

Truncate table reviews_description;

# Clearing recommended items

Truncate table featured;

# Clear manufacturers and Materials

Truncate table manufacturers;

Truncate table manufacturers_info;

# Clear Group Prices

Truncate table group_pricing;

# Clear a promotion item

Truncate table salemaker_sales;

# Clearing special offer

Truncate table specials;

 

Deletes all products under a specified category, but does not delete this category.

Delete from 'products' where master_categories_id = 21 21 is the ID of the class to be deleted, which can be seen in the background.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.