select top 100 * from tb where not exists (select top 50 * from tb);不过,如此折腾太不划算(SQL的tempdb要大点,oracle的临时段要大一点),建一个序列(SQL中为自增)字段不就搞定!