2020
09-25
09-25
java结合email实现自动推送功能
1、获取表中最后一条数据publicstaticStringdemo()throwsSQLException{Stringsql="select*FROMbaoxiuORDERBYidDESCLIMIT0,1;";PreparedStatementptmt=conn.prepareStatement(sql);ResultSetrs=ptmt.executeQuery();Stringstr=null;if(rs.next()){str=rs.getString("bt");}returnstr;}2、使用模糊查询,获取符合条件的所有数据publicstaticList<DuibiModel>getBaoX(Stringbt)throws...
继续阅读 >