标签: linux bash shell service
SELECT ROW_NUMBER() OVER (PARTITION BY ID ORDER BY DATE DESC) AS ROW_NUM FROM TABLE