报错原因:数据表中定义的字段属性为varchar型 所以赋值的时候应加‘’单引号
例:
String sql="delete from counts where ";
sql=sql+"id_c="+id+" and year="+year+" and term="+"'"+term+"'";
报错原因:数据表中定义的字段属性为varchar型 所以赋值的时候应加‘’单引号
例:
String sql="delete from counts where ";
sql=sql+"id_c="+id+" and year="+year+" and term="+"'"+term+"'";