格式:update 表名称 set 字段名称 = 字段名称 + 1 [ where语句]
字段是指定的如count,如设置评论数在原有的基础上+1
String sqls="update Comprecondition set count=count+1 where lanme=?";
不知道给表中哪个字段加1,字段是动态的
String sqls="update Comprecondition set "+kk+"="+kk+"+1 where lanme=?";
字段是指定的如count,如设置评论数在原有的基础上+1
String sqls="update Comprecondition set count=count+1 where lanme=?";
不知道给表中哪个字段加1,字段是动态的
String sqls="update Comprecondition set "+kk+"="+kk+"+1 where lanme=?";