请帮我理解是什么问题
我有桌面订单
func buttonDeletePressed(sender:UIButton){
deleteFeed("1")
}
我也有
CREATE TABLE `orders` (
`Order_id` int(5) NOT NULL AUTO_INCREMENT,
`Ordered_Date` date NOT NULL,
`Payment_method_id` int(5) NOT NULL,
`Ship_Type_id` int(5) DEFAULT NULL,
`Customer_id` int(5) NOT NULL,
`Status` varchar(20) NOT NULL DEFAULT 'Expecting',
PRIMARY KEY (`Order_id`),
KEY `ORDERS_fk0` (`Payment_method_id`),
KEY `ORDERS_fk1` (`Ship_Type_id`),
KEY `ORDERS_fk2` (`Customer_id`),
CONSTRAINT `ORDERS_fk0` FOREIGN KEY (`Payment_method_id`) REFERENCES `payment_methods` (`Payment_Method_id`),
CONSTRAINT `ORDERS_fk1` FOREIGN KEY (`Ship_Type_id`) REFERENCES `ship_types` (`Ship_Type_id`),
CONSTRAINT `ORDERS_fk2` FOREIGN KEY (`Customer_id`) REFERENCES `customers` (`Customer_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
然后我尝试运行此代码
CREATE TABLE `payment_methods` (
`Payment_Method_id` int(5) NOT NULL AUTO_INCREMENT,
`Payment_Type` varchar(50) NOT NULL,
PRIMARY KEY (`Payment_Method_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
它插入行,但是当我查看表顺序时,我看到它创建了raw,其中所有字段都是0。
它可以是什么?