0
statement2=Myconn.prepareStatement("SET @rank:=0; update entretien "+
" set [email protected]:[email protected]+1 where vehicule_id=?;");
statement2.setInt(1,1);
statement2.executeUpdate();
此查询适用于MySQL工作台,但它不能在Java中工作查询工作于MySQL,但不是在java中
我有最新的MySQL和JDBC的版本,我认为这个问题是可能的“;”那跟着@rank:= 0?