What is the syntax required for the creation of a cursor ?
EXEC SQL
DECLARE cur_name CURSOR for
SELECT col1,col2
FROM table1
WHERE col1 = search_condition
END-EXEC.
EXEC SQL
DECLARE cur_name CURSOR for
SELECT col1,col2
FROM table1
WHERE col1 = search_condition
END-EXEC.