I am facing a problem while creating a static cursor in DB2. This is the statement i used in my SP.
DECLARE CURNAME SENSITIVE STATIC SCROLL CURSOR FOR
SELECT COL1, COL2
FROM SCH.TABLENA
ORDER BY COL1;
on compilation it says : DB2 Database Error: ERROR [42601] [IBM][DB2/NT] SQL0104N An unexpected token "SENSITIVE" was found following "". Expected tokens may include: "FOR". LINE NUMBER=20. SQLSTATE=42601
The version of Db2 i am using is 9.5.
Please let me know how to create a Static cursor.