I'd like to use the LIMIT clause to do paging on DB2. The DB2 is hosted on AS400 and I'm accessing it via JDBC over JTOpen.
In Paging through result sets using LIMIT and OFFSET or ROWNUM I learned that I can put DB2 into an MySql compatibility by calling
DB2_COMPATIBILITY_VECTOR=MYS
This allows to use a LIMIT clause to do paging. Since my queries should run on MySql too this would be very helpull.
Unfortunaltely I did not find a way to enable this via JDBC and I'm not really sure this is supported at all on DB2 on AS400.
Hope somebody can shed some more light on this.