怎么把ResultSet结果转换成int
查询语句是Stringstr="selectcount(*)fromsubject";st=dbConn.createStatement();rs=st.executeQ...
查询语句是
String str = "select count(*) from subject";
st = dbConn.createStatement();
rs = st.executeQuery(sql);
怎么把rs类型的结果转换成int型数据? 展开
String str = "select count(*) from subject";
st = dbConn.createStatement();
rs = st.executeQuery(sql);
怎么把rs类型的结果转换成int型数据? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询