我在NetBeans 7中设置了一个 Java 数据库,并与之连接,但我的查询结果为空。
我的数据库名为Questioneer,表名为QNTABLE,位于服务选项卡中的 APP 文件夹下。
我使用了查询
query = "select QNNAME from QNTABLE"; // (QNNAME is a field name) with the statement:
Statement st = dbConn.createStatement();
ResultSet rs = st.executeQuery(query);
有了这个,但是st并rs显示为空。