In my project I need to query the db with pagination and provide user the functionality to query based on current search result. Something like limit, I am not able to find anyt
Was looking for a quick solution. maybe would be useful for someone.
SELECT id FROM complexCoding LIMIT ? OFFSET ? ",req.query.perpage,((req.query.page-1) * req.query.perpage)
Do not forget to paginate according to the total count of id divided by perpage
total count of id