“Truncated incorrect DOUBLE value”的解决方法主要是这四种:
错误写法示例:
update tablename set col1=value1 and col2=value2 where col3=value3;
正确写法示例:
update tablename set col1=value1,col2=value2 where col3=value3;
String sql="UPDATE arrange SET askForLeave='是' WHERE employeeNum=“+employeeNum+” and arrangeDate="+leaveDate;
改成了
String sql="UPDATE arrange SET askForLeave='是' WHERE employeeNum='"+employeeNum+"' and arrangeDate='"+leaveDate+"'"
在字符串变量前后加了单引号