Curtis Granderson then hit his second opposite field single of the game to left, off Bobby Parnell, to put runners on first and third. Mark Teixeira followed with a tying hit a day after he gave the Yankees the lead with a two-run homer.
The Mets scored more than three runs against the Yankees for the first time in 11 games and for the first time in their past five games this season, but have lost six of seven overall.
Making his 51st interleague start, matching Livan Hernandez for most all time, Pettitte raced through the top of the Mets order with only seven pitches in the first. He then needed 36 pitches in the second as the Mets scored three runs. He gave up three runs — two earned — and struck out eight in six innings.
The Yankees put the leadoff batter on against Niese five times in seven innings but came up empty until the seventh. The Yankees hit into three double plays to help quash threats.
Given an extra day of rest after leaving his most recent start with an accelerated heart rate, Niese appeared to get out of seventh inning when Andruw Jones hit a grounder to Wright. Wright spun and made the throw into the dirt.
Martin followed with his homer. His home run in the ninth was the third walk-off homer of his career.
NOTES: The Yankees reinstated pitcher Freddy Garcia from the bereavement list and sent Ryota Igarashi to Triple-A Scranton-Wilkes/Barre. ... Jeter has grounded into 11 double plays this season. He had 10 all last year. ... Rodriguez moved past Eddie Murray for seventh on the career RBIs list with 1,918.
Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.