日期:2014-05-17 浏览次数:20485 次
if object_id('tb') is not null drop table tb
go
create table tb(tid int, tname varchar(10), tdate datetime, thour decimal(18,1))
insert into tb values(1 , 'allen' , '2009-3-2' , 3.5)
insert into tb values(2 , 'allen' , '2009-3-3' , 5 )
insert into tb values(3 , 'allen' , '2009-3-4' , 7 )
insert into tb values(4 , 'allen' , '2009-3-5' , 8 )
insert into tb values(5 , 'allen' , '2009-3-6' , 4 )
insert into tb values(6 , 'allen' , '2009-3-7' , 6 )
insert into tb values(13 , 'allen' , '2009-3-9' , 3.5)
insert into tb values(14 , 'allen' , '2009-3-10', 3.5 )
insert into tb values(15 , 'allen' , '2009-3-11' , 7 )
insert into tb values(16 , 'allen' , '2009-3-12' , 8 )
insert into tb values(17, 'allen' , '2009-3-13' , 4 )
insert into tb values(18, 'allen' , '2009-3-14' , 6 )
insert into tb values(19 , 'allen' , '2008-12-1' , 3.5)
insert into tb values(20 , 'allen' , '2008-12-2', 3.5 )
insert into tb values(21 , 'allen' , '2008-12-3' , 7 )
insert into tb values(22 , 'allen' , '2008-12-4' , 8 )
insert into tb values(23, 'allen' , '2008-12-5' , 4 )
insert into tb values(24, 'allen' , '2008-12-6' , 6 )<