Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DECLARE MYCURSOR CURSOR FOR {{Your Table}}
- OPEN MYCURSOR
- FETCH NEXT FROM MYCURSOR INTO {{Your parameter}}
- WHILE @@FETCH_STATUS = 0 BEGIN
- --- Do Something
- FETCH NEXT FROM MYCURSOR INTO {{Your parameter}}
- END
- CLOSE MYCURSOR
- DEALLOCATE MYCURSOR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement