共用方式為


rowInserted Method (SQLServerResultSet)

Retrieves whether the current row has had an insertion.

public boolean rowInserted()

傳回值

true if a row has had an insertion and insertions are detected. Otherwise, false.

例外狀況

SQLServerException

備註

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

The value that is returned depends on whether this SQLServerResultSet object can detect visible inserts.

注意

SQL Server does not detect inserted rows for any cursor type.

另請參閱

參考

SQLServerResultSet Class

概念

SQLServerResultSet Methods
SQLServerResultSet Members