商品相册【是商品的其他相片】

添加相册需求:

每张图片生成三张缩略图{50*50、350*350、650*650}

1、建表p39_goods_pic{id,pic,sm_pic,mid_pic,big_pic,goods_id

drop table if exists p39_goods_pic;
create table p39_goods_pic(
    id mediumint unsigned not null auto_increment comment 'Id',
    pic varchar(150) not null default '' comment '原图',
    sm_pic varchar(150) not null default '' comment '小图',
    mid_pic varchar(150) not null default '' comment '中图',
    big_pic varchar(150) not null default '' comment '大图',
    goods_id mediumint unsigned not null comment '商品Id',
    primary key(id),
    key goods_id(goods_id)
)engine=InnoDB default charset=utf8 comment '商品相册';
p39_goods_pic

相关文章:

  • 2021-12-25
  • 2021-07-11
  • 2021-07-23
  • 2021-07-30
  • 2021-10-23
  • 2021-11-28
  • 2021-05-31
  • 2021-10-30
猜你喜欢
  • 2022-01-21
  • 2021-09-30
  • 2021-09-06
  • 2021-07-09
  • 2021-06-27
  • 2022-02-25
  • 2021-07-31
相关资源
相似解决方案