摘 要: | 问:为什么我不能更新数据表?部分代码是这样的Sql2=“SELECT StoreAttributeCode FROM wktb1530 WHEREStoreCode=‘0101’;Statement objStatement=objConnection createStatement();ResultSet rsWkTbl=objStatement.executeQuery(Sql2);if(rsWkTbl.first()){rsWkTbl.updateString(“StoreAttributeCode”,“001”);}错误是:Result Set not updateable.The query that generatedthis Tesult set must select only one table,and must select all
|