Unable to translate SQLException with Error code '2'

这个问题通常是数据格式不对,通常是表的数据格式和sql的数据格式对不上。

比如表格定义bigint,下面有取avg --->即double

又比如 string 和数值型 

 

参考: https://blog.csdn.net/jiangyu1013/article/details/70159689