Tim Lincecum (10-13) won his fourth consecutive decision. He also singled twice and scored two runs.
Ricky Nolasco (13-10) was charged with seven runs on seven hits and three walks in 1 1-3 innings.
DIAMONDBACKS 9, ROCKIES 2
PHOENIX (AP) The Colorado Rockies announced after their loss to Arizona that longtime star Todd Helton plans to retire at the end of the season.
The 40-year-old Helton is a five-time All-Star. He doubled, scored a run and drove in one during the loss.
Wade Miley took a shutout into the seventh inning, and Gerardo Parra doubled twice and drove in three runs.
Aaron Hill had three hits and three RBIs and Miguel Montero had three hits and scored twice on his bobblehead night, helping Miley (10-10) get his first win since Aug. 6.
Roy Oswalt (0-6) gave up two runs and seven hits in 4 2-3 innings.
REDS 7, BREWERS 3
MILWAUKEE (AP) Joey Votto and Shin-Soo Choo each hit two-run homers, and the Cincinnati Reds kept pace in the NL Central race with a win over the Milwaukee Brewers.
Homer Bailey (11-10) allowed three runs over seven innings in winning his career-best sixth straight decision. Votto had three RBIs, including the towering drive off the right field foul pole in the sixth.
The Brewers loaded the bases with two outs in the eighth trailing by four, but All-Star closer Aroldis Chapman struck out pinch-hitter Jonathan Lucroy.
Chapman tossed a scoreless ninth to finish off his 36th save.
The Reds jumped on starter Johnny Hellweg (1-4) with four runs over the first two innings.
PIRATES 2, CUBS 1
PITTSBURGH (AP) Gerrit Cole pitched seven strong innings and got home run help from Marlon Byrd and Jose Tabata, leading the Pittsburgh Pirates past the Chicago Cubs.
The Pirates have won five of six and tied St. Louis for the NL Central lead.
Cole (8-7) gave up one run and five hits. The rookie struck out seven and walked three.
Tony Watson pitched the eighth and Mark Melancon worked the ninth to finish off the five-hitter for his 15th save.
Byrd hit a solo home run off James Russell (1-6) in the seventh to put Pittsburgh ahead 2-1.
MARINERS 4, CARDINALS 1
ST. LOUIS (AP) Rookie James Paxton gave up two hits in six shutout innings and the Seattle Mariners ended a five-game losing streak, dropping St. Louis into a tie for the NL Central lead.
St. Louis and Pittsburgh share the division lead once again. The Pirates topped the Cubs 2-1.
The Cardinals mustered only three hits, including Matt Carpenter's league-leading 50th double.
Paxton (2-0) gave up a pair of singles. Danny Farquhar got his 14th save.
Rookie Michael Wacha (3-1) had his scoreless streak at 23 2-3 innings.
BRAVES 2, PADRES 1
ATLANTA (AP) Kris Medlen allowed four hits over 7 1-3 scoreless innings to win his fourth straight start, leading the Atlanta Braves over San Diego.
The NL East-leading Braves led 2-0 before Chase Headley hit a ninth-inning homer off closer Craig Kimbrel, who then pitched around a two-out walk to Ronny Cedeno for his career-best 47th save.
Freddie Freeman had three hits, including a sixth-inning homer off Robbie Erlin (2-3), to help the Braves earn their first win of the season over the Padres. San Diego won the first four games of the season series.
PHILLIES 5, NATIONALS 4
WASHINGTON (AP) Carlos Ruiz had two doubles and three RBIs, John Mayberry homered and the Philadelphia Phillies ended Washington's seven-game winning streak.
The Nationals fell 5 games behind Cincinnati for the second NL wild card.
Cole Hamels (8-13) won his fourth straight decision. Jonathan Papelbon worked around a leadoff double in the ninth for his 27th save.
Denard Span extended his hitting streak to 25 games. He got three hits and stole three bases for Washington.
Gio Gonzalez (10-7), coming off a one-hitter against the Mets, allowed four runs on nine hits in six innings.
MARLINS 3, METS 0, 1ST GAME
METS 3, MARLINS 1, 2ND GAME
NEW YORK (AP) Daisuke Matsuzaka allowed two hits in seven innings for his first major league win in more than a year, and the New York Mets got back-to-back homers from Daniel Murphy and Lucas Duda to beat the Miami Marlins for a doubleheader split.
Matsuzaka (1-3) plunked Placido Polanco twice in the nightcap, but other than that the Japanese right-hander was in complete control. It was his first big league win since Aug. 27, 2012, with Boston against Kansas City. He entered 1-10 in his past 16 major league starts.
LaTroy Hawkins got three outs for his 10th save.
Murphy and Duda homered to start the third against Jacob Turner (3-7), who fell to 0-6 in his last 11 starts.
In the opener, Donovan Solano got some payback after he was hit by two pitches, launching a home run and making two terrific defensive plays that sent Henderson Alvarez and the Marlins past the Mets in the opener of a doubleheader.
Logan Morrison drove in two runs, one on a line drive off the right wrist of Frank Francisco that knocked the oft-injured reliever out of the game. Alvarez (4-4) pitched four-hit ball over seven innings for his second win against the Mets this year.
Carlos Torres (3-5) hit Solano with pitches in his first two plate appearances. Torres struck out a career-high eight in six innings and gave up only three hits.