外部更新

对于外部更新,在每种结果集类型下,也有不同的情况,表7-2列出了所有的情况。

表7-2

ResultSet Type 可以看到external-delete后结果 可以看到external-update后结果 可以看到external-insert后结果
forward-only
scroll-insensitive
scroll-sensitive

在DatabaseMetaData中也提供了关于察看结果集外部更新后是否对用户可见的方法。

boolean othersDeletesAreVisible(int) throws SQLException

boolean othersInsertsAreVisible(int) throws SQLException

boolean othersUpdatesAreVisible(int) throws SQLException