我想知道在 java(JDBC) 中从数据库触发选择查询时。假设 执行(查询)不返回任何行那么结果集对象的值是多少???是空还是可以是其他???请回复
Statement statement = connection.createStatement();
ResultSet result = statement.executeQuery("select * from people");
最佳答案
检查这个Execute Query ,它指出
a ResultSet object that contains the data produced by the given query; never null
所以结果集是空而不是null
关于java - 现在从数据库获取行时结果集的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15871786/