Cursor can only be used with prepared SELECT statements Explanation: You attempted to declare a cursor based on a prepared statement that was not a SELECT statement. Cursors can be based only on SELECT statements. User Action: Use EXECUTE to execute this statement.