기초공부 - (6) limit & offset
# limit 와 offset 은 페이징 처리에 유용하게 사용됩니다. 1. limit # 1번째 로우부터 5개 까지만 출력 mysql> select * from temp_limit limit 5; +------+ | a | +------+ | 1 | | 2 | | 3 | | 4 | | 5 | +------+ 5 rows in set (0.00 sec) # 5번재 이후 로우부터 3개만 출력 mysql> select * from temp_limit limit 5,3; +------+ | a | +------+ | 6 | | 7 | | 8 | +------+ 3 rows in set (0.00 sec) 2. offset - limit는 단독으로 사용되지만 offset은 limit와 함께 사용해야합니다. # 3..
2024.02.19