結果 : how to use nested cursor in sql server