結果 : use while loop instead of cursor in sql server