下载地址:
下载地址1(本站为飞网专业下载站,域名:down.cfei.net)
资源简介:
package dao;import java.sql.*;import java.util.ArrayList;import po.NewsPO;import util.*;public class NewsDAO { private Connection con; private Statement stmt; private ResultSet rs; // 查询所有新闻 public ArrayList getNews() { ArrayList al = null; con = Tools.getConnection(); try { stmt = con.createStatement(); rs = stmt.executeQuery("select count(*) from news"); if(rs.next()) { int i = rs.getInt(1); if(i>0) { al = new ArrayList(); rs = stmt.executeQuery("select * from news");
飞网下载站,免费下载共享资料,内容涉及教育资源、专业资料、IT资源、娱乐生活、经济管理、办公文书、游戏资料等。