• It's interesting that a variable can be declared multiple times if it's within a "while" loop (provided that it's only declared once in each iteration).

    When I first read the question I thought that declaring @a within the loop would cause an error on the second iteration.