SQL - Stored Procedures and Functions
Examine the following cursor code snippet:
What is the error in this code?
DECLARE cur CURSOR FOR SELECT id FROM products;
FETCH NEXT FROM cur INTO @prod_id;
OPEN cur;
CLOSE cur;
DEALLOCATE cur;
What is the error in this code?
