正在加载图片...
Using a Cursor Initially a cursor is positioned before the first row. The various " move"methods can be used to move the cursor to a row The move ToNexto method moves the cursor to the neXt row since it returns false when there are no more rows it can be used in a while loop to iterate through the rows of a cursor · Example Cursor While(cursor move ToNext o) // retrieve/process data for one row 46Using a Cursor • Initially a cursor is positioned before the first row. The various “move” methods can be used to move the cursor to a row. • The moveToNext() method moves the cursor to the next row. Since it returns false when there are no more rows, it can be used in a while loop to iterate through the rows of a cursor. • Example while (cursor.moveToNext()) { ... // retrieve/process data for one row } 46 Cursor
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有