Post

SQL - 전체 페이지 수 구하기

구문

1
2
3
SELECT
	(COUNT(*) + size - 1) / size AS total_pages
FROM table_name
This post is licensed under CC BY 4.0 by the author.