摘要:
public class BookTypeDao { 增加 public int bookTypeAdd(Connection con, BookType bookType) throws SQLException{ String sql="insert into t_bookType values(null,?,?)"; PreparedStateme... 阅读全文
摘要:
若执行数据库操作有如下警告: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ r 阅读全文
摘要:
如果所传bookTypeName为空则执行select * from t_bookType(搜索框里未输入信息) 否则追加 and bookTypeName like '%"+bookType.getBookTypeName()+"%' 如果是追加的第一个and则替换为where: sb.toStr 阅读全文