I'm trying to write some records on an empty MySQL table defined with the CREATE STATEMENT structure below:
CREATE TABLE `table_1` (
`full_name` varchar(45) DEFAULT NULL,
`gender` varchar(45) DEFAULT NULL,
`age` int(11) DEFAULT NULL,
`birthdate` datetime DEFAULT NULL,
`email` varchar(45) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
`mobile_phone` varchar(45) DEFAULT NULL,
`entry` varchar(255) DEFAULT NULL,
`lat` float DEFAULT NULL,
`long` float DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
The type of single record to write is something like that:
|abdullah mun'im|abdullah_munim@test.com|0176028950|lot 4257, jln bunga raya 2, kg. sg. kelambu, 42700 banting|it would be awesome to drink water with bes-drink in this hec'drink'c event. don't scared of frozen yogurt, nobody will get hurt. ? |male|2.7861321|101.5541346|1993-07-28|26|
This is the error occurred:
ERROR Database Writer 0:187:309:208:228 Execute failed: java.lang.Exception: Error while adding row #2 (Row0), reason: 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 'long) VALUES ('abdullah mun\'im', 'male', 26, '1993-07-28', 'abdullah_munim@test' at line 1
Can someone explain me what is wrong? Cause as it seems to me the syntax is correct with that version of MySQL server.