com.mysql.jdbc.MysqlDataTruncation:数据截断:错误的日期值:第1行的'dob'列的日期值为'2000年8月3日'

时间:2018-08-30 02:15:21

标签: java mysql jdbc prepared-statement

当我运行程序时,它将报告此错误:

from PIL import Image
model.fit_generator(
        train_generator,
        steps_per_epoch=2000 // batch_size,
        epochs=50,
        validation_data=validation_generator,
        validation_steps=800 // batch_size)
model.save_weights('first_try.h5') 

output will display like: Epoch 1/50
 34/125 [=======>......................] - ETA: 7:23 - loss: 0.7237 - acc: 0.5478 ... comntinue 

com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date
    value: '3 Aug, 2000' for column 'dob' at row

0 个答案:

没有答案