String condition="DELETE FROM  materialInstore WHERE  materialID="+""+ID+"";

解决方案 »

  1.   

    少加了单引号,对于String类型的字段必须要加单引号。
    试一下改成:String condition="DELETE FROM  materialInstore WHERE  materialID='"+ID+"'";
    插入语句也是一样的,比如:
     String condition= "INSERT INTO materialInstore VALUES('"+material_seq+"','"+mID+"')";
      

  2.   

    INSERT INTO materialInstore VALUES"+"("+" "+material_seq+" ,"+mID+" ,"+tID+" ,"+indate+" , "+distance+" ,"+sendw+" ,"+acceptw+" ,"+loadp+" ,"+unloadp+" ,"+sendm+" ,"+acceptm+" ,"+demo+" ,"+inputerID+" )"
    跟楼上分析一样,要在相关的字段加上单引号!