|
String ksql = "select a.fNam from PR_SysInfo a";
//Map<String, Object> params = new HashMap<String, Object>();
//params.put("fType", vType);
//params.put("fCode", vNodeCode);
Table table = KSQL.select(ksql, null, "/HTTPR/HTTPR_BasicInfo/data", null);
Iterator<Row> rows = table.iterator();
String str = "";
if (rows.hasNext()) {
Row row = rows.next();
str += row.getValue("fName");
row.setState(ModifyState.NONE);
}
明明数据库有好几条数据,请问为什么这样只获取一条? |
|