📄 e268. determining if a result set is scrollable.txt
字号:
See also e267 Creating a Scrollable Result Set.
try {
// Get type of the result set
int type = resultSet.getType();
if (type == ResultSet.TYPE_SCROLL_INSENSITIVE
|| type == ResultSet.TYPE_SCROLL_SENSITIVE) {
// Result set is scrollable
} else {
// Result set is not scrollable
}
} catch (SQLException e) {
}
Related Examples
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -