+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:公益商城-商品属性表:https://open.yesapi.cn/tablelist/yesapi_morning_os_product_attribute.html


-- 数据库大全:公益商城-商品属性表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_morning_os_product_attribute` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `attribute_id` bigint(20) NULL COMMENT '属性ID',
    `product_id` bigint(20) NULL COMMENT '商品ID',
    `stock` int(11) NULL DEFAULT '0' COMMENT '总库存',
    `sales_volume` int(11) NULL DEFAULT '0' COMMENT '销售量',
    `page_views` int(11) NULL DEFAULT '0' COMMENT '游览量',
    `comment_number` int(11) NULL DEFAULT '0' COMMENT '评论数量',
    `comment_total` int(11) NULL DEFAULT '0' COMMENT '累计评价',
    `comment_average` decimal(10,0) NULL DEFAULT '0' COMMENT '平均评价',
    `favorite_number` int(11) NULL DEFAULT '0' COMMENT '收藏数',
    `question_number` int(11) NULL COMMENT '提问数',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '公益商城-商品属性表';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-10 条, 共 10 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
attribute_idbigint(20)属性ID无索引
product_idbigint(20)商品ID无索引
stockint(11)0总库存无索引0
sales_volumeint(11)0销售量无索引0
page_viewsint(11)0游览量无索引0
comment_numberint(11)0评论数量无索引0
comment_totalint(11)0累计评价无索引0
comment_averagedecimal(10,0)0平均评价无索引0
favorite_numberint(11)0收藏数无索引0
question_numberint(11)提问数无索引

猜你喜欢

MySQL数据库设计 公益商城-系统配置表

MySQL数据库设计 公益商城-日志记录表

MySQL数据库设计 公益商城-目录表

MySQL数据库设计 公益商城-组织表

MySQL数据库设计 公益商城-角色表

MySQL数据库设计 公益商城-角色权限关联表

MySQL数据库设计 公益商城-管理员表

MySQL数据库设计 公益商城-管理员登陆表

MySQL数据库设计 公益商城-管理员角色关联表

MySQL数据库设计 公益商城-系统日志表

MySQL数据库设计 公益商城-收获地址表

MySQL数据库设计 公益商城-广告位表

MySQL数据库设计 公益商城-广告位管理表

MySQL数据库设计 公益商城-分类表

MySQL数据库设计 公益商城-类目广告表

MySQL数据库设计 公益商城-评价表

MySQL数据库设计 公益商城-评论回复表

MySQL数据库设计 公益商城-邮箱记录表

MySQL数据库设计 公益商城-收藏夹表

MySQL数据库设计 公益商城-产品类型表



回到顶部 ↑