希望能够多次遍历结果集。
You want to be able to traverse the result set multiple times.
下面的步骤相当简单 ―只要遍历结果集并将其打印出来
The following step is quite straight forward -- just walk through the result set and print it
在数据库读操作成功之后,它循环遍历结果集并收集帐户数据信息。
After a successful database read operation, it iterates on the result set and collects the individual account data information.
随后遍历结果集,将每个字段作为单独的单元格写入到电子表格,在完成后跳到下一个行。
It then proceeds to iterate through the result set, writing each field to the spreadsheet as a separate cell and jumping to the next row when done.
我们希望遍历大结果以进行重新组织(1000000结果集)。
We want to loop over big results for reorganization (1000000 result sets).
枚举和我们的搜索代码将遍历整个记录存储,根据指定的搜索条件构建一个排序过的结果集。
Working through the entire record store, the enumeration and our search code build a result set that is sorted based on the specified search criteria.
用同样的方法,我们可以从头到尾遍历这个结果集,取得每个对象的位置信息的xml值(一个字符串)。
In this way, we can iterate over the result set, and get the XML value (as a string) for each object's location information.
然后,使用此记录集迭代遍历搜索结果以显示给定的子集。
This recordset is then used to iterate through the search results to display a given subset.
大块的结果集可以进行外部排序,reduce()任务遍历整个排序的数据,把每个唯一的键和分类的结果传递到用户的reduce() 函数子进行处理。
Very large results may be externally sorted. The task iterates over the sorted data and passes each unique key and collated results to the users’s reduce() functor for processing.
这样,数据库就只会查询一次,并且我们接下来也可以遍历存储在集合对象里面的结果集。
With this the database is only queried once and we will then iterate over the result set that is stored within the collection object. Here is the changed sample code.
这样,数据库就只会查询一次,并且我们接下来也可以遍历存储在集合对象里面的结果集。
With this the database is only queried once and we will then iterate over the result set that is stored within the collection object. Here is the changed sample code.
应用推荐