String sql="UPDATE table
SET using = ? WHERE number = ?";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setString(1,"在忙");
pstmt.setInt(2,num);
return pstmt.executeUpdate();
提示语法错误了,不知道怎么办。搞了一整天了。
String sql="UPDATE table
SET using = ? WHERE number = ?";
PreparedStatement pstmt=con.prepareStatement(sql);
pstmt.setString(1,"在忙");
pstmt.setInt(2,num);
return pstmt.executeUpdate();
提示语法错误了,不知道怎么办。搞了一整天了。