refreshRow Method (SQLServerResultSet)
Refreshes the current row with its most recent value in the database.
Syntax
public void refreshRow()
Exceptions
Remarks
This refreshRow method is specified by the refreshRow method in the java.sql.ResultSet interface.
This method cannot be called when the cursor is on the insert row.
This method provides a way for an application to explicitly tell the JDBC driver to refetch rows from the database. An application might need to call this method when the Microsoft JDBC Driver for SQL Server is caching or prefetching to fetch the latest value of a row from the database. The JDBC driver might actually refresh multiple rows at the same time if the fetch size is greater than one.
All values are refetched subject to the transaction isolation level and cursor sensitivity. If this method is called after calling an updater method, but before calling the updateRow method, the updates made to the row are lost. Calling this method frequently will probably slow performance.
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