商品扩展分类
需求:一件商品能有多个扩展分类,搜索任何一个分类都能搜出该商品
建表【扩展分类表】
drop table if exists p39_goods_cat; create table p39_goods_cat ( cat_id mediumint unsigned not null comment '分类Id', goods_id mediumint unsigned not null comment '商品Id', key goods_id(goods_id), key cat_id(cat_id) )engine=InnoDB default charset=utf8 comment '扩展分类';