Login or sign up Lost password?
Login or sign up
Before I go any further: Yes, I know that cursors perform poorly compared with set-based operations.