• I really disagrree with the answer 1245.

    the actual resul it is 12345.

    if @i = 3 then we are setting J = @i/0;

    so there no use of this statement finally we are storing the i value in to the temparory table.