Creating a Cursor-Paginated SQL Query with Multiple Filters and Sorting
Hi
I'm trying to write a cursor-paginated SQL query where it is possible to filter several columns, order the results by a pre-defined set of available columns, in a given sort order (ASC or DESC). My attempt looks like this:
When I print the resulting sql (using
What I would like to see somehow is:
Did I hit a limitation of
When I print the resulting sql (using
compiler.compile), I get this:What I would like to see somehow is:
Did I hit a limitation of
sqlfx/mysql, or is the way I'm trying to build this query wrong?