javaweb_17

一.显示数据
/**
     * 根据编号查询所有数据
     */
    public List

queryArticleByAid(int aid);
@Override
    public List
queryArticleByAid(int aid) {
        String sql="select * from e_article where typeId=?";
        List
list=new ArrayList
();
        Type type=null;
        ResultSet rs=this.executeQuery(sql, aid);
        try {
             while(rs.next()) {
                 list.add(new Article(rs.getInt(1), rs.getString(2), rs.getInt(3), rs.getString(4), rs.getString(5), rs.getString(6), type));
             }
        } catch (Exception e) {
          e.printStackTrace();
        } finally {
            DBHelper.myClose(conn, ps, rs);
        }
        return list;
    }

                    
                                                     style="border-color: #CCCCCC; border-style: inset; height: 130px; width: 272px; border-width: 1px; float: left;">
                            
                            

                                    
                                    
                                        
                                    

                                    
                                

                        
 
                                                     style="border-color: #CCCCCC; border-style: inset; height: 130px; width: 272px; border-width: 1px; float: left; margin-left: 30px;">
                            
                            

                                    
                                        
                                    

                                    
                                

                        
 
 
                                                     style="border-color: #CCCCCC; border-style: inset; height: 130px; width: 272px; border-width: 1px; float: left; margin-top: 5px;">
                            
                            

                                    
                                        
                                    

                                    
                                

 
 
                        
 
                                                     style="border-color: #CCCCCC; border-style: inset; height: 130px; width: 272px; border-width: 1px; float: left; margin-left: 30px; margin-top: 5px;">
                            
                            

                                    
                                        
                                    

                                    
                                

                        

————————————————
版权声明:本文为CSDN博主「huangjialinᴸ」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m0_63579794/article/details/124233547


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部