The Detroit Pistons snapped their NBA-record 15-game postseason losing streak by beating the New York Knicks 100-94.