1
 INSERT INTO INSTRUCTORBOOKING (INSTRUCTORID, TIMESLOT, STATUS, DATE)
 VALUES('', '8.00 - 9.00', 'Free', 'Sun Jan 08 00:00:00 CST 2012')

Basically when I run it it gives me this error:

 com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date 
 value: 'Sun Jan 08 00:00:00 CST 2012' for column 'Date' at row 1

the Date column is of type Date. The Value for date also came from one of my previous questions, but its a Date object. Appreciate the help so far!!

4

1 回答 1

2

尝试这个:

INSERT INTO INSTRUCTORBOOKING (INSTRUCTORID, TIMESLOT, STATUS, DATE)
 VALUES('', '8.00 - 9.00', 'Free', '2012-01-08 00:00:00')
于 2013-01-22T15:39:37.410 回答