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

MySQL建表SQL语句

数据库结构:DBErp进销存-商城订单:http://open.yesapi.cn/tablelist/yesapi_dberp_shop_order.html


-- 数据库大全:DBErp进销存-商城订单
-- 来源:YesApi.cn
CREATE TABLE `yesapi_dberp_shop_order` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `shop_order_sn` varchar(50) NOT NULL COMMENT '',
    `shop_buy_name` varchar(100) NOT NULL COMMENT '',
    `shop_payment_code` varchar(20) NOT NULL COMMENT '',
    `shop_payment_name` varchar(30) NOT NULL COMMENT '',
    `shop_payment_cost` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `shop_payment_certification` varchar(500) NOT NULL COMMENT '',
    `shop_express_code` varchar(30) NOT NULL COMMENT '',
    `shop_express_name` varchar(50) NOT NULL COMMENT '',
    `shop_express_cost` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `shop_order_other_cost` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `shop_order_other_info` varchar(500) NOT NULL COMMENT '',
    `shop_order_state` tinyint(2) NOT NULL DEFAULT '10' COMMENT '',
    `shop_order_discount_amount` decimal(19,4) NOT NULL DEFAULT '0.0000' COMMENT '',
    `shop_order_discount_info` varchar(500) NOT NULL COMMENT '',
    `shop_order_goods_amount` decimal(19,4) NOT NULL COMMENT '',
    `shop_order_amount` decimal(19,4) NOT NULL COMMENT '',
    `shop_order_add_time` int(10) NOT NULL COMMENT '',
    `shop_order_pay_time` int(10) NOT NULL COMMENT '',
    `shop_order_express_time` int(10) NOT NULL COMMENT '',
    `shop_order_finish_time` int(10) NOT NULL COMMENT '',
    `shop_order_message` varchar(500) NOT NULL COMMENT '',
    `app_id` int(11) NOT NULL COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'DBErp进销存-商城订单';

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


MySQL数据库表结构设计

第 1-22 条, 共 22 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
shop_order_snvarchar(50)无索引
shop_buy_namevarchar(100)无索引
shop_payment_codevarchar(20)无索引
shop_payment_namevarchar(30)无索引
shop_payment_costdecimal(19,4)0.0000无索引0.0000
shop_payment_certificationvarchar(500)无索引
shop_express_codevarchar(30)无索引
shop_express_namevarchar(50)无索引
shop_express_costdecimal(19,4)0.0000无索引0.0000
shop_order_other_costdecimal(19,4)0.0000无索引0.0000
shop_order_other_infovarchar(500)无索引
shop_order_statetinyint(2)10无索引10
shop_order_discount_amountdecimal(19,4)0.0000无索引0.0000
shop_order_discount_infovarchar(500)无索引
shop_order_goods_amountdecimal(19,4)无索引
shop_order_amountdecimal(19,4)无索引
shop_order_add_timeint(10)无索引
shop_order_pay_timeint(10)无索引
shop_order_express_timeint(10)无索引
shop_order_finish_timeint(10)无索引
shop_order_messagevarchar(500)无索引
app_idint(11)无索引

回到顶部 ↑