List<Object[]>ResultList=newArrayList<Objec[]>();//遞歸查詢屬於同一部門下面的員工ID StringQuery="select ID from emp_group start with ID = '0001' connect by nocycle prior ID = PARENTID";ResultList=super.getRowList(Query);StringBuilderparams=newStringBuilder();// To eg: '0001','0002','003'for(inti=0;i<ResultList.size();i++){params.append("'");params.append(ResultList.get(i)[0]);params.append("'");// add "," if(i!=ResultList()-1){params.append(",");}}
String to int
intnum=Integer.valueOf(rs.getString(1)).intValue;// This function may throw NumberFormatException intnum2=Integer.parseInt(StringName);
近期评论