The product category is to put different categories in different tables or in one table. you only need to mark the category.

Source: Internet
Author: User
Product classification is to put different categories in different tables or in one table. you just need to mark the classification tag, so the technical experts can ask a question ~

When the product category is put in different categories in different tables, or in a table, you only need to mark the category mark ?~

I don't know if this is a conventional approach. I used select to make a selection classification, marking 0, 1, and 2, then, different types are entered into different SQL statements and placed into different tables.
Later, I found that it is also possible to put it in a table. as long as the tag is different, it can also be distinguished during presentation.

Beginner, ugly ~ Thank you !~


Reply to discussion (solution)

You can put it in a table. if there are more than two levels of classification, in addition to level1 (level 1) lever2 (Level 2), you must also note that Level 2 fid (parent level id) = a Level 1 id, level 1 fid = 0

Thank you very much. this is generally the case. it is not used for classification in different tables. it is used for different functions, such as user tables, product tables, and news tables.
This is the second-level classification ~ Try again later ~

I posted the post here for the first time. I have already posted the post. I wonder if it is successful ~~

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.