#-----------------创建表--- kj_mall_goods_detail
DROP TABLE IF EXISTS `{DB_PRE}mall_goods_detail`;
CREATE TABLE IF NOT EXISTS `{DB_PRE}mall_goods_detail` (
`detail_id` int(10) NOT NULL auto_increment,`detail_goods_id` int(10) NOT NULL COMMENT '所属商品id',`detail_name` varchar(50) NOT NULL COMMENT '名称',`detail_number` varchar(50) NOT NULL COMMENT '货号',`detail_store` int(10) NOT NULL COMMENT '库存',`detail_sold` int(10) NOT NULL COMMENT '售出',`detail_price` decimal(20,2) NOT NULL COMMENT '售价',`detail_price_vip` varchar(255) NOT NULL COMMENT 'vip价',`detail_price_market` decimal(20,2) NOT NULL COMMENT '市场价',`detail_weight` int(10) NOT NULL COMMENT '重量',`detail_position` varchar(50) NOT NULL COMMENT '位置',`detail_state` smallint(2) NOT NULL COMMENT '状态',`detail_pic` varchar(100) NOT NULL,`detail_format` text NOT NULL,PRIMARY KEY (`detail_id`)
) ENGINE=myisam  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1

