我試圖執行此代碼時出現錯誤。java.sql.SQLException:jdbc錯誤中的用盡結果集
我的要求是使用getInt()
將字符串轉換爲數據庫。
for (int i = 1; i <= 7; i++) {
int t = rs.getInt(i);
temp = Integer.toString(t);
if (temp.length() == 1) temp="00"+temp;
else if (temp.length() == 2) temp="0"+temp;
else temp=temp;
output=output+temp;
...