try{
conn=DB.getConn();
String sql = "select userid from users where username = '"+username+"';select jztypeid from jztype where jztypename='"+jztype+"'";
pstmt = DB.getPStmt(conn, sql);
int userid =
pstmt.executeUpdate();
}catch(SQLException e){
e.printStackTrace();
}
就是userid和typeid怎么写能获取数据库里取过来的值