java数据库编程
时间:2021-07-01 10:21:17
帮助过:2人阅读
String sql= "select * from tables where a =‘"+a+"‘;"
;
2
3 st =
(Statement) conn.createStatement();
4
5 ResultSet rs =
st.executeQuery(sql);
6 System.out.println(" 执行完查询语句,开始取数据"
);
7
8 if(rs.first()) {
9 filename=rs.getString("appFilePath"
);
10 System.out.println("appFilePath:"+rs.getString("appFilePath"
));
11
12 filemd5=rs.getString("appFileMd5Value"
);
13 System.out.println("appFileMd5Value:"+rs.getString("appFileMd5Value"
));
14
15 scriptname=rs.getString("scriptFilePath"
);
16 }
ResultSet()
java数据库编程
标签: