String qry = "select * from notice order by regdate desc limit ?, 2;";

PreparedStatement stmt = con.prepareStatement(qry);

~~~~

stmt.setInt(1, start);


분명 정상적으로 작성했는데 컴파일러가 문법 오류 있다고... 염병을... 하네요...

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, 2' at line 1

뭐가 잘못된 건가요 도대체..