zaagan
8/2/2019 - 2:50 AM

MS SQL Declaring Cursors

MS SQL Declaring Cursors

DECLARE my_cursor CURSOR  
    FOR SELECT * FROM TableName
OPEN my_cursor   
FETCH NEXT FROM my_cursor;