The DECLARE CURSOR statement (declare_cursor_statement) defines a named result table with the name result table name.
<declare_cursor_statement> ::= DECLARE <result_table_name> CURSOR FOR <select_statement>
An OPEN CURSOR statement with the name of the result table is required to actually generate the result table defined with a DECLARE CURSOR statement.