PHOENIX -- A.J. Pollock broke out of an 0-for-13 start to the season with three hits, scoring twice and driving in a run, and the Arizona Diamondbacks beat the San Francisco Giants 5-4 on Tuesday night.
Wade Miley (1-1) gave up four runs in the first inning, and then blanked the Giants for the next six, retiring 15 in a row in one stretch.
Gerardo Parra had two hits and the sacrifice fly that scored to the go-ahead run in the sixth inning.
Brandon Belt hit a three-run home run in the first, his second homer in as many games.
Addison Reed, who gave up the game-winning home run to Buster Posey Monday night, pitched a scoreless ninth for his first save with the Diamondbacks.
Pinch-hitter Hector Sanchez reached second with one out in the ninth when Arizona rookie shortstop Chris Owings misjudged a pop fly to short left and it dropped for a double. But Brandon Crawford fouled out to the catcher and Juan Perez struck out looking to end the game.
Pollock, dropped from the leadoff spot to No. 8 in the order, beat out an infield single in the first, singled and scored in the fourth, then doubled in a run and scored the go-ahead run in the sixth.
Paul Goldschmidt was 2 for 4 with an RBI double, extending his hitting streak to 23 games. Owings had two hits and a stolen base.
Juan Guiterrez (0-1) went two innings to take the loss in relief of Matt Cain.
The perils of the new challenge rule were on display in the bottom of the fourth inning. With two outs, Giants manager Bruce Bochy challenged a safe call on an attempt to pick off Pollock at first.
Bochy lost the challenge, so he didn't have one to use moments later when Pollock scored from third on a passed ball. Replays showed Cain's glove appeared to touch Pollock's foot before the Diamondback base runner crossed the plate.
The run cut the Giants' lead to 4-3.
The Diamondbacks scored twice in the sixth to take the lead. Owings singled with one out, stole second and scored on Pollock's ground-rule double to left-center. Miley singled, an then Pollock scored from third on Parra's sacrifice fly to left, sliding in barely ahead of Perez's throw.
San Francisco jumped on Miley in a hurry. Singles by Angel Pagan, Pablo Sandoval and Posey brought in the first run. Then Belt hit Miley's 1-0 pitch into the swimming pool area in right field and it was 4-0.
Arizona got two in the bottom of the first. Parra led off with a single and came home on Goldschmidt's double to deep right-center. Goldschmidt scored on Martin Prado's single.
Cain left with a 4-3 lead after five innings. He gave up two earned runs, struck out two and walked two. Will Harris pitched a scoreless eighth for the Diamondbacks.
Notes: Posey is 8 for 17 in his career against Miley. ... In Wednesday night's third game of the four-game series, Tim Hudson makes his Giants debut, while Trevor Cahill (0-1) goes for Arizona. ... The Diamondbacks' Miguel Montero walked three times, once intentionally. ... Arizona's Mark Trumbo twice grounded in to inning-ending double plays. ... The attendance of 18,974 was just under 30,000 below Monday night's turnout.