declare @DayNum int
set @DayNum=2
select distinct top (@DayNum) CONVERT(varchar(100),a.StartTime, 112) as StartTime from [tkf_ceshi] a
declare @DayNum int
set @DayNum=2
select distinct top (@DayNum) CONVERT(varchar(100),a.StartTime, 112) as StartTime from [tkf_ceshi] a