连续最大:
SELECT M.* FROM #temp MINNER JOIN (SELECT ISNULL(A.score,0)-b.score AS score,B.id FROM #temp AS BLEFT JOIN #temp A ON A.id=B.id+1 ) N ON M.id=N.id WHERE n.score<0
如果ID不连续,用rownum代替