Hello,
How could I know how many rows of the query result? I'd like to use
- result.numRows;
but this isn't work.
- Database.Connection con = Database.Connection("DBConnector1");
- con.connect();
- Database.ResultSet result = con.query"SELECT * FROM customers");
- while (result.fetchNext())
- {
- string firstName = result["FirstName"];
- string lastName = result["LastName"];
- for (int j = 1; j <= result.numFields; j++) {
- Variant column1Value = result[j];
- ...
- }
- ...
- }
- con.disconnect();