sql - Unexpected token "LIMIT" in DB2 -


  == DropLogic project: Migrate ================================== ===== = Rack aborted! An error occurred, this and later the migration was canceled: Runtime Error: Failed to execute the statement for this reason: [IBM] [CLI driver] [DB2 / LNUX 8664] SQL0104 N An unlikely token "LIMIT" Was found after. The expected token may include: "First select FETCH & lt; n & gt; ROWS only" SQLSTATE = 42601 SQLCODE = -104: Select projects. Projects with WHERE projects.id & lt; 17 LIMIT 1   

How can I fix this?

DB2 LIMIT x does not support keywords.

An error message says, the proper way to do this is to use FETCH FIRST x ROWS ONLY .

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -