10
How to get total rows in mysql if there was no LIMIT clause?
(lemmy.pe1uca.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Select count(*) from (select ...) ? See if the query optimizer pipelines that.
Maybe I misunderstand what you are trying to do.
The OP wants the paginated table data and the count. With a single query execution.