var rs = dbConn.executeCachedQuery("select ....");
var rsmd;
var colCount;
点击此查询后,我得到3个结果
while(rs.next()) {
logger.info('entering...'+(count + 1));
var columnName,patientID,value,text = '';
rsmd = rs.getMetaData();
colCount = rsmd.getColumnCount();
for (var i = 1; i <= colCount; i++) {
columnName = rsmd.getColumnName(i);
value = rs.getObject(i);
//doing some task here
}
//end of FOR loop
}
//end of while loop
我的查询返回3行,在循环查看3行,同时在WHILE条件下检查'rs.next()'时,它会抛出以下错误..
执行此操作时出现此错误org.mozilla.javascript.Undefined@c91f0d
请帮忙
答案 0 :(得分:1)