WOLFRAM

SQLResultSetRead[rs]

shifts the current position and then reads a row from a result set.

SQLResultSetRead[rs,num]

reads num rows from a result set.

Details and Options

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the DatabaseLink`DatabaseExamples` package, as described in Using the Example Databases.

Open a connection:

Open a result set:

Read the first row:

Out[4]=4

Read the second and third rows:

Out[5]=5

Read the last four rows:

Out[7]=7

Close the result set:

Options  (1)Common values & functionality for each option

"GetAsStrings"  (1)

Applications  (1)Sample problems that can be solved with this function

Process each row individually, and get the sum:

Out[4]=4