#-----------------创建表--- kj_mall_goods_sold
DROP TABLE IF EXISTS `{DB_PRE}mall_goods_sold`;
CREATE TABLE IF NOT EXISTS `{DB_PRE}mall_goods_sold` (
`sold_id` int(10) NOT NULL auto_increment,`sold_goods_id` int(10) NOT NULL COMMENT '商品id',`sold_detail_id` int(10) NOT NULL COMMENT '商品规格id',`sold_num` int(10) NOT NULL,`sold_user_id` int(10) NOT NULL,`sold_order_id` int(10) NOT NULL,`sold_price` decimal(10,2) NOT NULL,`sold_datetime` datetime NOT NULL,`sold_goods_cost` decimal(10,2) default '0.00',`sold_shop_id` int(10) default '0' COMMENT '商家id',PRIMARY KEY (`sold_id`)
) ENGINE=myisam  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1

