将记录插入表时出现错误 1064 Place
。这些INT
值都没有小数点。
桌子:
CREATE TABLE Place (
Place_ID INT (4) NOT NULL,
Type VARCHAR (4),
Elevation INT (4),
Population INT (4),
AddressInfo VARCHAR(4),
ASCIIName VARCHAR(4) NOT NULL,
Latitude INT (4) NOT NULL,
Longitude INT (4) NOT NULL,
PRIMARY KEY (Place_ID)
);
插入数据:
INSERT INTO place VALUES (‘1000119’, ‘Beijingshan’, ‘0’, ‘1032934’, ‘740 Dragon Dr. 93402’, ‘PPL’, ‘29’, ‘118’);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Dragon Dr. 93402', 'PPL', '29', '118')' at line 1
如果我可以提供更多信息,请告诉我。