来源:https://stackoverflow.com/questions/63999745/query-to-assign-serial-number-for-rows-without-grouping-together-and-without-cha 标签 sql sql-server datetime window-functions gaps-and-islands