Skip to content

ASENSITIVE

DECLARE cursor1 CURSOR ASENSITIVE FOR
SELECT * FROM employees;
OPEN cursor1;
Query OK, 0 rows affected (0.00 sec)

The given SQL code declares an ASENSITIVE cursor cursor1 that selects all records from the employees table. The ASENSITIVE keyword specifies that the cursor is sensitive to changes to the result table and may reflect those changes. The OPEN statement opens the cursor to allow for queries. The output represents successful execution of the cursor operation and opening, however, it doesn’t reflect the contents of the result set.