标签:
1 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 }
标签:
原文地址:http://www.cnblogs.com/Alic-Bob/p/5610490.html