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
Post a Comment