"update category set isleaf =" +1+ " where id=" +pid 与
"update category set isleaf = 1      where id=" +pid 

解决方案 »

  1.   

    "update category set isleaf =" +1+ " where id=" +pid
    这个是错的吧
      

  2.   

    "update category set isleaf ='" +1+ "' where id=" +pid
      

  3.   

    update category set isleaf ='" +1+ "' where id='" +pi + "'"不确定你的是isleaf 和 id 是什么类型
    如果不是数值 要加上单引号的
      

  4.   

    好吧 弄上去个颜色还出问题了重新发一遍好了update category set isleaf ='" +1+ "' where id='" +pi + "'"