I’m mostly posting this question as a resource for others as I couldn’t find anything explicitly answering it online: Is the LIMIT x,y syntax performatively equivalent to OFFSET x, LIMIT y?
According to official MySQL docs:
For compatibility with PostgreSQL, MySQL also supports the LIMIT row_count OFFSET offset syntax.
This implies to me that they are absolutely equivalent.
But I can’t find any official doc saying so explicitly. So I’m 99% sure there aren’t any low level differences, but would love that official stamp of approval and peace of mind. Thanks.
I actually wasn’t sure, and I can’t find any documentation either, but I tested it and it seems to work just fine. Results:
So yeah. I did more testing than this, but I don’t want to post all of it. That’s pretty handy to know as that syntax makes more sense to me.