SQLResultSetShift[rs,num]
shifts the current position of a result set by num.
Details and Options
Examples
Basic Examples
See Also
Tech Notes
Related Guides
DatabaseLink`
DatabaseLink`
SQLResultSetShift
SQLResultSetShift[rs,num]
shifts the current position of a result set by num.
Details and Options
- To use SQLResultSetShift, you first need to load DatabaseLink using Needs["DatabaseLink`"].
- SQLResultSetShift returns True if there is data at the new position and False if there is no data.
Examples
Basic Examples (1)
Needs["DatabaseLink`"]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.
conn = OpenSQLConnection["publisher"];rs = SQLResultSetOpen[SQLSelect[conn, "roysched"]]SQLResultSetPosition[rs]SQLResultSetShift[rs, 2]SQLResultSetPosition[rs]SQLResultSetShift[rs, 2]SQLResultSetPosition[rs]SQLResultSetClose[rs]CloseSQLConnection[conn];