java.io.IOException:Tried to send an out-of-range integer as a 2-byte value 分析+解决
例如:insert into table(id,name,gender,type),如果批量插入10000条,则参数的数量=10000*4。PostgreSQ&GaussDB数据库批量插入报错,原因是数据库批量插入的参数是有数量限制的。最终解决办法分批插入,数量不要超过高斯数据库的限制。
·
PostgreSQ&GaussDB数据库批量插入报错,原因是数据库批量插入的参数是有数量限制的
例如:insert into table(id,name,gender,type),如果批量插入10000条,则参数的数量=10000*4
但是会超过数量限制
最终解决办法分批插入,数量不要超过高斯数据库的限制
更多推荐
所有评论(0)