日期:2014-05-17 浏览次数:20626 次
create table #tb(id int,name varchar(10),ktime datetime)
insert into #tb(id,name,ktime)
select 1 ,'张三' ,'2013-07-01 7: 40'
union all select 1,'张三','2013-07-01 7: 42'
union all select 1,'张三','2013-07-01 11: 40'
union all select 1,'张三','2013-07-02 18: 40'
union all select 1,'张三','2013-07-02 7: 50'
union all select 1,'张三','2013-07-02 11: 50'
union all select 1,'张三','2013-07-02 18: 10'
union all select 2,'李四','2013-07-01 7: 40'
union all select 2,'李四','2013-07-01 11: 40'
union all select 2,'李四','2013-07-02 18: 40'
union all select 2,'李四','2013-07-02 7: 50'
union all select 2,'李四','2013-07-02 18: 10'