本例代码下载:https://files.cnblogs.com/files/xiandedanteng/InsertMillionComparison20191012.rar

这次实验的环境仍然和上次的一样,只是插入时间cdate改为一条增加一秒,代码如下:

package com.hy.action;

import java.io.Reader;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.apache.log4j.Logger;

import com.hy.entity.Employee;
import com.hy.mapper.EmpMapper;

public class BatchInsert1001 {
private static Logger logger = Logger.getLogger(SelectById.class);

    public static void main(String[] args) throws Exception{
        long startTime = System.currentTimeMillis();

        Reader reader=Resources.getResourceAsReader("mybatis-config.xml");

        SqlSessionFactory ssf=new SqlSessionFactoryBuilder().build(reader);
        reader.close();

        SqlSession session=ssf.openSession();

        try {
            EmpMapper mapper=session.getMapper(EmpMapper.class);
            String ctime="2017-11-01 00:00:01";

            for(int i=0;i<10000;i++) {
                List<Employee> emps=new ArrayList<Employee>();

                for(int j=0;j<1000;j++) {
                    Employee emp=new Employee("E"+i,20,ctime);
                    emps.add(emp);    

                    ctime=timePastOneSecond(ctime);
                }

                int changed=mapper.batchInsert(emps);
                session.commit();
                System.out.println("#"+i+" changed="+changed);

            }
        }catch(Exception ex) {
            session.rollback();
            logger.error(ex);
        }finally {
            session.close();

            long endTime = System.currentTimeMillis();
            logger.info("Time elapsed:" + toDhmsStyle((endTime - startTime)/1000) + ".");
        }
    }

    public static String timePastOneSecond(String otime) {
        try {
            SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            Date dt=sdf.parse(otime);

            Calendar newTime = Calendar.getInstance();
            newTime.setTime(dt);
            newTime.add(Calendar.SECOND,1);

            Date dt1=newTime.getTime();
            String retval = sdf.format(dt1);

            return retval;
        }
        catch(Exception ex) {
            ex.printStackTrace();
            return null;
        }
    }

    // format seconds to day hour minute seconds style
    // Example 5000s will be formatted to 1h23m20s
    public static String toDhmsStyle(long allSeconds) {
        String DateTimes = null;

        long days = allSeconds / (60 * 60 * 24);
        long hours = (allSeconds % (60 * 60 * 24)) / (60 * 60);
        long minutes = (allSeconds % (60 * 60)) / 60;
        long seconds = allSeconds % 60;

        if (days > 0) {
            DateTimes = days + "d" + hours + "h" + minutes + "m" + seconds + "s";
        } else if (hours > 0) {
            DateTimes = hours + "h" + minutes + "m" + seconds + "s";
        } else if (minutes > 0) {
            DateTimes = minutes + "m" + seconds + "s";
        } else {
            DateTimes = seconds + "s";
        }

        return DateTimes;
    }
}

这次插入很顺利,控制台显示正常完成:

#9997 changed=1000
#9998 changed=1000
#9999 changed=1000
 INFO [main] - Time elapsed:6m0s.

看DB里也正常:

但是,同样的程序,在之前运行时却报这种异常:

#598 changed=1000
#599 changed=1000
#600 changed=1000
#601 changed=1000
#602 changed=1000
#603 changed=1000
#604 changed=1000
ERROR [main] - org.apache.ibatis.exceptions.PersistenceException:
### Error updating database.  Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '2017-03-12 02:00:00' for column 'cdate' at row 520
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into emp(name,age,cdate)   values         (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)
### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '2017-03-12 02:00:00' for column 'cdate' at row 520
 INFO [main] - Time elapsed:43s.

#604 changed=1000
ERROR [main] - org.apache.ibatis.exceptions.PersistenceException:
### Error updating database.  Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '2017-03-12 02:00:00' for column 'cdate' at row 520
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: insert into emp(name,age,cdate)   values         (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)    ,     (?,?,?)
### Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect datetime value: '2017-03-12 02:00:00' for column 'cdate' at row 520
 INFO [main] - Time elapsed:39s.

有点不可捉摸!

--END-- 2019年10月12日17:38:06

[MyBatis]向MySql数据库插入一千万条数据 批量插入用时6分 之前时隐时现的异常不见了的更多相关文章

  1. [MyBatis]五分钟向MySql数据库插入一千万条数据 批量插入 用时5分左右

    本例代码下载:https://files.cnblogs.com/files/xiandedanteng/InsertMillionComparison20191012.rar 我的数据库环境是mys ...

  2. [MyBatis]再次向MySql一张表插入一千万条数据 批量插入 用时5m24s

    本例代码下载:https://files.cnblogs.com/files/xiandedanteng/InsertMillionComparison20191012.rar 环境依然和原来一样. ...

  3. orcle 如何快速插入百万千万条数据

    有时候做实验测试数据用到大量数据时可以用以下方法插入: 方法一:使用xmltable create table bqh8 as select rownum as id from xmltable('1 ...

  4. WebGIS项目中利用mysql控制点库进行千万条数据坐标转换时的分表分区优化方案

    文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/ 1. 背景 项目中有1000万条历史案卷,为某地方坐标系数据,我们的真实 ...

  5. mysql 数据库查询最后两条数据

    版权声明:本文为博主原创文章,未经博主同意不得转载. https://blog.csdn.net/u011925175/article/details/24186917  有一个mysql数据库的 ...

  6. MySQL数据库实验:任务二 表数据的插入、修改及删除

    目录 任务二 表数据的插入.修改及删除 一.利用界面工具插入数据 二.数据更新 (一)利用MySQL命令行窗口更新数据 (二)利用Navicat for MySQL客户端工具更新数据 三.数据库的备份 ...

  7. java之5分钟插入千万条数据

    虽说不一定5分钟就插入完毕,因为取决去所插入的字段,如果字段过多会稍微慢点,但不至于太慢.10分钟内基本能看到结果. 之前我尝试用多线程来实现数据插入(百万条数据),半个多小时才二十多万条数据. 线程 ...

  8. mysql自定义函数并在存储过程中调用,生成一千万条数据

    mysql 自定义函数,生成 n 个字符长度的随机字符串 -- sql function delimiter $$ create function rand_str(n int) returns VA ...

  9. 使用事务操作SQLite数据批量插入,提高数据批量写入速度,源码讲解

    SQLite数据库作为一般单机版软件的数据库,是非常优秀的,我目前单机版的软件产品线基本上全部替换Access作为优选的数据库了,在开发过程中,有时候需要批量写入数据的情况,发现传统的插入数据模式非常 ...

随机推荐

  1. CSS设置元素的隐藏和显示

    常见的三种方式 display display: none 隐藏对象 display: block 除了转换为块级元素以外,同时还有显示元素的意思 特点:隐藏之后不保留位置 visibility 值h ...

  2. ECharts简单入门demo

    <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...

  3. RabbitMQ的持久化

      RabbitMQ的持久化主要体现在三个方面,即交换机持久化,队列持久化及消息持久化 注意,因公司使用php-amqplib来实现RabbitMQ,故之后举例说明的代码均使用的php-amqplib ...

  4. asp.net网站部署在云服务器windows server 2008上

    搭建一个网站需要以下4个准备: 1.域名解析 2.(云)服务器 3.数据库 4.网站代码 其中1可以可以去DNSPOD申请,同时需要进行备案,在上面就都可以完成.2用的是阿里云服务器windows s ...

  5. 【Struts2】防止表单重复提交

    一.概述 二.Struts2中解决方案 三.实现步骤 一.概述 regist.jsp----->RegistServlet 表单重复提交 危害: 刷票. 重复注册.带来服务器访问压力(拒绝服务) ...

  6. dict 字典 函数值应用

    函数 说明 D代表字典对象   D.clear() 清空字典 D.pop(key) 移除键,同时返回此键所对应的值 D.copy() 返回字典D的副本,只复制一层(浅拷贝) D.update(D2) ...

  7. 第三章、drf框架 - 序列化组件 | Serializer

    目录 第三章.drf框架 - 序列化组件 | Serializer 序列化组件 知识点:Serializer(偏底层).ModelSerializer(重点).ListModelSerializer( ...

  8. kubernetes之download api

    download api作用: 可以通过环境变量或Volume挂载将pod信息注入到容器内部 apiVersion: apps/v1 kind: Deployment metadata: name: ...

  9. P1361 小M的作物 最小割理解

    如果没有组合效益的存在 我们直接每个点两部分的最大值即可 换成网络流模型来看 即把S点看作是A田 把T点看作是B田 每种作物看作一个点 分别连边(S,i,A[i]) (i,T,B[i]) 最后图中所有 ...

  10. 理解Event冒泡模型

    本文探索一下Event的冒泡过程和初学遇到的几个小bug DOM Event概述 Event接口是检测在DOM中的发生的所有事件,我们一直在用,而且从DOM的很早的版本就一直在用着.早期的网景(后来的 ...