Skip to content

INSENSITIVE

DECLARE cur1 CURSOR
INSENSITIVE FOR
SELECT customerName
FROM Customers;
+------------------+
| customerName |
+------------------+
| Atelier graphique|
| Signal Gift Stores|
| Australian Collectors, Co.|
| ... |
+------------------+

In this example, the keyword INSENSITIVE is used while declaring a cursor. It is used to create a temporary copy of the data retrieved by the cursor so that changes made to the database data cannot affect the cursor results. The query within the cursor is fetching the customerName from the Customers table.