I am afraid, that if you compare your solution with mine, you will see no performance difference, as opening/closing cursor is very fast operation. Though I agree with you that continually opening/closing cursor looks like something wrong.
I am afraid, that if you compare your solution with mine, you will see no performance difference, as opening/closing cursor is very fast operation. Though I agree with you that continually opening/closing cursor looks like something wrong.