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

MySQL建表SQL语句

数据库结构:汽车故障诊断-:https://open.yesapi.cn/tablelist/yesapi_ecs_order_goods.html


-- 数据库大全:汽车故障诊断-
-- 来源:YesApi.cn
CREATE TABLE `yesapi_ecs_order_goods` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `order_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '',
    `goods_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '',
    `goods_name` varchar(120) NOT NULL COMMENT '',
    `goods_sn` varchar(60) NOT NULL COMMENT '',
    `product_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '',
    `goods_number` smallint(5) NOT NULL DEFAULT '1' COMMENT '',
    `market_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '',
    `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '',
    `goods_attr` text NOT NULL COMMENT '',
    `send_number` smallint(5) NOT NULL DEFAULT '0' COMMENT '',
    `is_real` tinyint(1) NOT NULL DEFAULT '0' COMMENT '',
    `extension_code` varchar(30) NOT NULL COMMENT '',
    `parent_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '',
    `is_gift` smallint(5) NOT NULL DEFAULT '0' COMMENT '',
    `goods_attr_id` varchar(255) NOT NULL COMMENT '',
    KEY `order_id` (`order_id`),
    KEY `goods_id` (`goods_id`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '汽车故障诊断-';

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


MySQL数据库表结构设计

第 1-15 条, 共 15 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
order_idmediumint(8)0普通索引0
goods_idmediumint(8)0普通索引0
goods_namevarchar(120)无索引
goods_snvarchar(60)无索引
product_idmediumint(8)0无索引0
goods_numbersmallint(5)1无索引1
market_pricedecimal(10,2)0.00无索引0.00
goods_pricedecimal(10,2)0.00无索引0.00
goods_attrtext无索引
send_numbersmallint(5)0无索引0
is_realtinyint(1)0无索引0
extension_codevarchar(30)无索引
parent_idmediumint(8)0无索引0
is_giftsmallint(5)0无索引0
goods_attr_idvarchar(255)无索引

猜你喜欢

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-

MySQL数据库设计 汽车故障诊断-



回到顶部 ↑