今天上课进行了进一步的代码2书写。
主要是进行广告方面的设计对于数据库的管理。
try { pre = c.prepareStatement(sql); pre.setString(1,"111"); //pre.setString(2,tel); res = pre.executeQuery(); while (res.next()) { String s1 = res.getString("advert_name"); s.add(s1); } } catch (SQLException e) { e.printStackTrace(); } finally { Tool.release(c, pre, res); } System.out.println(s.get(0)); if(s.get(0).equals("拼多多官方推广")){%> <video onm ouseover="play_v1(this)" controls loop muted src="video/se.mp4"></video> <%}else{%> <video onm ouseover="play_v1(this)" controls loop muted src="http://101.43.157.183:8233/FileServer/ss.mp4"></video> <%} %>
标签:总结,pre,get,res,每日,5.15,setString,s1 From: https://www.cnblogs.com/syhxx/p/17403158.html