Subject Advantages of using CURSOR
Author W O
Hello everybody

If in a stored procedure I need to extract data from a table I can use a FOR SELECT or a DECLARE VARIABLE MyVar CURSOR FOR ( .... ) statement.

Which would be the advantage of using CURSOR FOR?

In which cases it is better than a FOR SELECT?

Greetings.

Walter.