How to convert MySQL `LIMIT` clause to PostgreSQL` LIMIT` clause?
1 answer
Compare the LIMIT MySQL syntax :
[LIMIT {[offset,] row_count | row_count OFFSET offset}]
the one used by Postgres :
[LIMIT { number | ALL }] [OFFSET number]
This should give you enough information to change LIMIT 0, 30
to LIMIT 30 OFFSET 0
. (Note that the latter is also MySQL syntax).
+6
source to share