create database if not exists test; create table if not exists test.weather(ts timestamp, temperature int, humidity float); ts, temperature, humidity insert into test.weather (ts, temperature, humidity) values (now, #{temperature,jdbcType=INTEGER}, #{humidity,jdbcType=FLOAT}) insert into test.weather (ts, temperature, humidity) values (now + #{index}a, #{weather.temperature}, #{weather.humidity})