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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -