Truncated incorrect DOUBLE value

mysql  + Eclipse   报错 Truncated incorrect DOUBLE value

 

Solution: 

String sql = "update Department set dname=? and dintro=? where did=?; " 

改为   String sql = "update Department set dname=?, dintro=? where did=?; ";

 

When the modified value of the plurality of columns needed "" connected, instead of "and"

 

 

 

Guess you like

Origin www.cnblogs.com/zoey686/p/11801677.html