共用方式為


rowDeleted Method (SQLServerResultSet)

Retrieves whether a row has been deleted.

public boolean rowDeleted()

傳回值

true if a row was deleted and deletions are detected. Otherwise, false.

例外狀況

SQLServerException

備註

This rowDeleted method is specified by the rowDeleted method in the java.sql.ResultSet interface.

A deleted row might leave a visible hole in a result set. This method can be used to detect holes in a result set. The value that is returned depends on whether this SQLServerResultSet object can detect deletions.

注意

SQL Server detects deleted rows for all updatable cursor types, though the detection is transient for forward and dynamic cursors.

另請參閱

參考

SQLServerResultSet Class

概念

SQLServerResultSet Methods
SQLServerResultSet Members