PHOENIX -- Chris Nelson and his Colorado teammates can take some small satisfaction that the Rockies will avoid losing 100 games this season.
Nelson drove home Tyler Colvin to start a four-run rally in the 13th inning, and the Rockies held off Arizona 7-5 on Monday night. The victory ensured Colorado wouldn't reach 100 losses.
"Nobody wants to lose 100 games in a season," Nelson said. "Now that that's over with, we just want to finish the season strong."
Nelson, who finished 3-for-6 with a double and a run scored, said many Rockies players are beginning the regular spring competition for jobs several months early.
"Guys are out there fighting for positions now," Nelson said. "We have a lot of guys coming back next year, and you want to be on the 25-man (roster)."
Colvin led off the 13th with a ground-rule double off Brad Bergesen (2-1), and Nelson followed with a looping single to center. Charlie Blackmon later added a bases-loaded, RBI single off Mike Zagurski, the Diamondbacks' seventh pitcher. Nelson scored on a fielder's choice, and Matt McBride came home on a wild pitch to complete the rally.
"You look at the bullpen -- 5 1/3 (innings), seven hits, four runs but four walks," Arizona manager Kirk Gibson said. "That is just a killer and very indicative of what we haven't done. The walks really hurt us."
Josh Outman (1-3) allowed two runs, walked two and struck out two in 2/3 of an inning for the win.
"We certainly shouldn't have done what we did in the bottom of the 13th," Rockies manager Jim Tracy said. "To give up three or four bases on balls. ... I can't comprehend that. I can't compute that."
Blackmon finished with four hits including a double.
The Rockies scored twice in the eighth to take a 3-2 lead against Arizona starter Wade Miley.
Blackmon reached on an infield single and was sacrificed to second. Miley struck out Jordan Pacheco for the second out but Josh Rutledge lined a double off the wall in right-center to tie the game at 2.
"Winning that game in that fashion definitely felt good," Rutledge said.
Colvin doubled just inside the right-field line, scoring Rutledge for Colorado's first lead.
Miley, making his franchise-record 29th start as a rookie, allowed the three runs and six hits over 7 2/3 innings. He struck out a career-high 10 and did not walk a batter for the second time in three starts.
"I didn't make some pitches there in the end," said Miley, who plans to be sitting in a deer stand come this weekend. "I have to forget about those things now and take the positives into the offseason."
Rockies starter Drew Pomeranz nearly matched Miley during his five-inning stint.
Pomeranz allowed two runs and three hits -- the two solo home runs and a third-inning single by John McDonald. He walked two and matched a career high with seven strikeouts.
Aaron Hill gave the Diamondbacks a 1-0 lead two batters into the game with his 25th home run. Gerardo Parra made it 2-0 when he led off the fifth inning with his first home run in just more than three months.
The game was the longest in innings for either team this season and the Diamondbacks' longest home game in terms of time. ... Goldschmidt returned to the lineup after missing three games with a sore back. ... Rockies OF Rafael Ortega, who made his major league debut Sunday, pinch hit for Pomeranz in the sixth. ... Pomeranz finishes the season 1-4 on the road but was far better than his previous three starts, in which he allowed five runs in 10 innings. ... Miley struck out the side in the third on nine pitches, the second player to accomplish the feat in the majors this season, and the third player in Diamondbacks history following Randy Johnson and Byung-Hyun Kim. ... Parra's home run was his first since June 19 against Seattle, a span of 189 at-bats. ... LHP Patrick Corbin (6-8) takes the mound for Arizona on Tuesday against Rockies RHP Jhoulys Chacin (3-5). Corbin, who was 3-0 with a 2.77 ERA in four straight early August starts, has gone 1-4 with a 6.94 ERA in his past seven appearances. Chacin is 3-2 with a 3.11 ERA against the Diamondbacks, 2-1 at Chase Field.