这里需要先转换成BasicMonth
pstmt.setObject(1, new BasicMonth(YearMonth.of(2016, 06)));
PreparedStatement pstmt = conn.prepareStatement("insert into tb values(?,?)"); pstmt.setObject(1, YearMonth.of(2000,6)); pstmt.setDouble(2,1.5); pstmt.executeUpdate();
server建表
n=1000 month=take(2000.01M..2016.12M, n) x=rand(1.0,n) t=table(month,x) db=database("dfs://testdb",VALUE,2000.01M..2016.12M) pt=db.createPartitionedTable(t,`stb,`month) pt.append!(t)