select * from board where title like ? pstmt.setString(1, "%안%"); <- 해킹 가능성이 있다. 밑에 처럼 해야한다. select * from board where title like concat('%', ?, '%') or content like concat('%', ?, '%') or writeId like concat('%', ?, '%')