한페이지에 보여주고 싶은 아이템을 서버에서 요청하면 요청한만큼 리턴해주는 기능으로 limit 를 사용한다.
<select id="getListForPaging" resultMap="list_map">
select * from [테이블명] limit #{시작번호}, #{원하는 아이템 수};
</select>
'sql' 카테고리의 다른 글
table idx 순차적으로 정리하는 방법 (0) | 2017.04.20 |
---|---|
Expected one result (or null) to be returned by selectOne(), but found (0) | 2017.03.09 |
DateTime 객체를 SimpleDateFormat으로 변환하기 (0) | 2017.02.16 |
table auto increment 초기화 방법 (0) | 2017.02.15 |
toad for mysql table 에서 record 한글이 깨질때 해결방법 (0) | 2017.02.03 |