interface DBRowReader Member of iAnywhere.MobiLink.Script
Represents a set of rows being read from a database. Executing the method DBCommand.executeReader( ) creates a DBRowReader.
The following example is a C# code fragment. It calls a function with the rows in the result set represented by the given DBRowReader.
DBCommand stmt = conn.CreateCommand(); stmt.CommandText = "select intCol, strCol from table1 "; DBRowReader rset = stmt.ExecuteReader(); object[] values = rset.NextRow(); while (values != null) { handleRow((int) values[0], (String) values[1]); values = rset.NextRow(); } rset.Close(); stmt.Close(); |
NextRow method
Close method
ColumnNames property
ColumnTypes property
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |