【发布时间】:2017-03-16 20:51:56
【问题描述】:
这样的代码:
这样的异常:
java.sql.SQLFeatureNotSupportedException 在 com.salesforce.phoenix.jdbc.PhoenixResultSet.first(PhoenixResultSet.java:173)
【问题讨论】:
-
请将问题中的代码作为文本。不要发布代码截图。至于问题:你有没有读过
ResultSet.first()的JDBC API Javadoc,特别是“SQLFeatureNotSupportedException - if the JDBC driver does not support this method”?显然您的驱动程序不支持这一点,还请注意,除非您使用可滚动的结果集(您的代码不支持,并且驱动程序可能不支持),否则first()无论如何都应该抛出 SQLException。跨度>