relative Method (SQLServerResultSet)
Moves the cursor the given amount of rows, relative to the current row, in either a positive or negative direction.
Syntax
public boolean relative(int nRows)
Parameters
nRows
An int that indicates the number of rows to move.
Return Value
true if the cursor is on a row. Otherwise, false.
Exceptions
Remarks
This relative method is specified by the relative method in the java.sql.ResultSet interface.
Trying to move beyond the first or last row in the result set positions the cursor before or after the first or last row. Calling relative(0)
is valid, but does not change the cursor position.
Calling the method relative(1)
is identical to calling the next method. Calling the method relative(-1)
is identical to calling the previous method.
See Also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho