검색하면 많은 Paging Query가 나온다.
그런데 내 입맛에 맞는 Query가 없었다.
예제용 Query가 아닌
실무에서 사용할 수 있는 Query를 원했다.
그래서 누군가에게 도움이 되고
내가 나중에 사용할 필요가 있을 시 사용하기 위해서 정리해놓는다.
Oracle과 MySQL 2가지 버전으로 알아보자.
1페이지에 20개의 데이터를 보여준다.
조회하고 싶은 페이지 클릭 시
해당 페이지에서 노출되어야 할 데이터를 노출한다.
count : 1페이지에 노출할 데이터의 양
ex) count = 30이라면 1페이지에 30개의 데이터를 보여준다.
startNum : 조회하려는 페이지의 번호
ex) 3이라면 3페이지를 보려는 것이다.
재직 중인 LINE 회사에서
신규 입사자는 만 2년 근무를 하면 Refresh 휴가를 받을 수 있다.
그리고 오늘(=1월2일) 기준으로 입사한 지 만 2년이 되었다.
2019. 01. 02 ~ 2021. 01. 02
2021년 Dev History
2020 Dev History에 이어
2021년에도 내가 어떤것에 관심을 갖고
어떤 공부를 했고 그로 인해 어떤 성장을 했는지 기록해두자.
2020 1Q Blog 기록하기 글에 이어
블로그에 대해 회고를 해본다.
사실 2Q, 3Q도 작성하려 했는데
정신없이 시간이 지나다 보니 작성하지 못해 아쉽다.
Given an integer array nums, return all possible subsets (the power set).
The solution set must not contain duplicate subsets.
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into on the same night.
Given a list of non-negative integers representing the amount of money of each house, determine the maximum amount of money you can rob tonight without alerting the police.