所以我试图创建这个表,但我得到#1064 eroor消息。这是我的代码:CREATE TABLE JagBank
。AccountType
(typeID
INT(4)NOT NULL,type
VARCHAR(15)NULL,interestRate
DOUBLE(4 )NULL,PRIMARY KEY(typeID
))ENGINE = InnoDB;
我是php的新手,但我很确定这是正确的吗?问题是什么?
答案 0 :(得分:0)
jagbank.accounttype
CREATE TABLE IF NOT EXISTS `jagbank.accounttype` (
`typeID` int(11) NOT NULL,
`type` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`interestRate` double DEFAULT NULL,
PRIMARY KEY (`typeID`)
) ENGINE=InnoDB
答案 1 :(得分:0)
只删除双数据类型的大小, 双数据类型没有大小尝试查询下面,
var body = JSON.parse(responseBody);
tests["sign_in_count is number"] = typeof(body.data.sign_in_count) === "number";
tests["firstname is string"] = typeof(body.data.firstname) === "string";