Alic-Bob

java数据库编程

  • 查询结果获取
    •  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         }      
      ResultSet()

       

分类:

技术点:

相关文章:

  • 2021-12-27
  • 2021-10-10
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2021-08-21
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案