Yuniesky Betancourt wasn't in the starting lineup Tuesday night, but that didn't keep him from helping the Milwaukee Brewers beat the Oakland A's.

Betancourt laced a two-out double into right-center off Pat Neshek in the bottom of the 10th inning to score Carlos Gomez from first base and lift the Brewers to a 4-3 victory at Miller Park.

The rally started with a one-out single to left by Aramis Ramirez, who was replaced on the bases by pinch runner Jeff Bianchi.

Gomez then grounded into a fielder's choice, bringing Betancourt to the plate. On an 0-1 offering from the side-arming Neshek and with Gomez breaking for second base on the pitch, Betancourt doubled into the gap.

Gomez never broke stride as he rounded third base and scored the winning run with a head-first slide into the plate to spark a mad celebration on the field among Brewers players and coaches.

"That was a fun ball game," manager Ron Roenicke said. "I know we didn't do much offensively until the end there, but fun game.

"That's a nice combination because Gomey's going to steal it and Yuni is swinging most of the time, so it almost ends up to be a hit and run."

Milwaukee, which managed just four hits over seven shutout innings thrown by Oakland starter A.J. Griffin and trailed, 3-0, finally strung together some offense in the eighth against reliever Sean Doolittle.

Rickie Weeks, who entered the game to boos in the top of the frame in a double-switch at second base with Scooter Gennett, led off with a single to left that just as quickly drew cheers from the crowd of 24,230.

Norichika Aoki followed with a single to center to put two on with the heart of the order coming up.

Two pitches later, Jean Segura lined a triple into the right-field corner to score both runners and narrow the deficit to 3-2. It was Segura's seventh triple, which leads the National League.

"He's been good the last three, four days," Roenicke said of Weeks. "If he's coming out of this thing, it's really good for our offense."

After Ryan Braun grounded out to third, Ramirez followed with a bloop single to center on which he shattered his bat, bringing in Segura and tying the score at 3-3.

Oakland failed to score in the ninth against Francisco Rodriguez, and the Brewers got the leadoff batter, Betancourt, on in the bottom of the inning. He drew an eight-pitch walk from Jerry Blevins as a pinch hitter.

Martin Maldonado bunted him up to second, where he remained when the A's chose to intentionally walk pinch hitter Jonathan Lucroy next to face Weeks.

Weeks flied out to deep center, allowing Betancourt to tag and move to third and bring Aoki to the plate. Aoki was then hit by a pitch, loading the bases for Segura, but the young shortstop couldn't deliver this time as he grounded out sharply to second base and sent the Brewers into extra innings for the seventh time.