Interested in improving this site? Please check the To Do page.

Back to MySQL Verbs

mysql.seekRow

Move the results cursor to a specific row in the results list.

Syntax

mysql.seekRow(queryid, row)

Params

A query ID, and a row number

Returns

0

Examples

mysql.seekRow(queryID, 2)

Notes

MySQL returns nothing from the mysql_data_seek call, which is what Frontier’s mysql.seekRow calls. So there’s no real point in doing any error checking here, although you might want to test the general MySQL error functions.

MySQL uses base-0 numbering while Frontier uses base-1. If you want MySQL to find the first row, pass 1 from Frontier. This routine will decrement the value, and see row 0 via the MySQL call.

Because there could be a LOT of rows in a results dataset, the value passed from Frontier can be a double (although conversion is done from regular integers and longs).

See Also


Personal Tools