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

MySQL建表SQL语句

数据库结构:商品表:https://open.yesapi.cn/tablelist/okayapi_goods.html


-- 数据库大全:商品表
-- 来源:YesApi.cn
CREATE TABLE `okayapi_goods` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `goods_name` varchar(1024) NULL COMMENT '商品名称',
    `goods_desc` varchar(2024) NULL COMMENT '商品描述',
    `goods_price` int(10) NULL DEFAULT '9999999' COMMENT '商品价格,单位为:分',
    `goods_maket_price` int(10) NULL DEFAULT '9999999' COMMENT '商品市场价,即原价,单位为:分',
    `goods_stock` int(10) NULL DEFAULT '0' COMMENT '商品库存',
    `goods_img` varchar(255) NULL COMMENT '商品图片链接',
    `goods_sell_time` datetime NULL COMMENT '商品上架时间,开始售卖时间',
    `goods_status` tinyint(3) NULL DEFAULT '1' COMMENT '商品状态,0待审核,1正常售卖,2已下架,3已售罄',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '商品表';

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


MySQL数据库表结构设计

第 1-8 条, 共 8 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
goods_namevarchar(1024)商品名称无索引Apple iPhone 8 Plus 64GB 红色特别版
goods_descvarchar(2024)商品描述无索引Apple iPhone 8 Plus 64GB 红色特别版 移动联通电信4G手机
goods_priceint(10)9999999商品价格,单位为:分无索引549900(表示:¥5499.00)
goods_maket_priceint(10)9999999商品市场价,即原价,单位为:分无索引549900(表示:¥5499.00)
goods_stockint(10)0商品库存无索引10
goods_imgvarchar(255)商品图片链接无索引http://admin.okayapi.com/images/model/m16.jpg
goods_sell_timedatetime商品上架时间,开始售卖时间无索引2018-08-08 08:08:08
goods_statustinyint(3)1商品状态,0待审核,1正常售卖,2已下架,3已售罄无索引1

猜你喜欢

MySQL数据库设计 商品评价

MySQL数据库设计 openant电商-

MySQL数据库设计 openant电商-市场提醒

MySQL数据库设计 openant电商-市场提醒描述

MySQL数据库设计 openant电商-API接口

MySQL数据库设计 openant电商-属性

MySQL数据库设计 openant电商-属性分组

MySQL数据库设计 openant电商-属性分组

MySQL数据库设计 openant电商-属性分组描述

MySQL数据库设计 openant电商-顶部

MySQL数据库设计 openant电商-顶部大图

MySQL数据库设计 openant电商-顶部图片描述

MySQL数据库设计 openant电商-条形码

MySQL数据库设计 openant电商-条形码描述

MySQL数据库设计 openant电商-论坛活动

MySQL数据库设计 openant电商-论坛讨论

MySQL数据库设计 openant电商-论坛讨论描述

MySQL数据库设计 openant电商-论坛版块

MySQL数据库设计 openant电商-论坛版块说明

MySQL数据库设计 openant电商-论坛帖子



回到顶部 ↑