L
luckchen8256
Unregistered / Unconfirmed
GUEST, unregistred user!
表结构如下
ID(INT,IDENTITY,PK)
CTIME(Datetime NOT NULL)
DEGREE(INT,NOT NULL)
每五分钟有一条记录,每天的时间以08:00开始,即2002-01-01 08:00:00 到
2002-01-02 08:00:00为一天
如
ID CTIME DEGREE
1 2002-01-01 08:00:00 2
2 2002-01-01 08:05:00 2
.
n 2002-01-02 08:00:00 4
n+1 2002-01-02 08:05:00 4
.
希望得到如下结果:
CDATE CTIME DEGREE
2002-01-01 2002-01-01 08:00:00 2
2002-01-01 2002-01-01 08:05:00 2
.
2002-01-01 2002-01-02 08:00:00 4
2002-01-02 2002-01-02 08:05:00 4
.
ID(INT,IDENTITY,PK)
CTIME(Datetime NOT NULL)
DEGREE(INT,NOT NULL)
每五分钟有一条记录,每天的时间以08:00开始,即2002-01-01 08:00:00 到
2002-01-02 08:00:00为一天
如
ID CTIME DEGREE
1 2002-01-01 08:00:00 2
2 2002-01-01 08:05:00 2
.
n 2002-01-02 08:00:00 4
n+1 2002-01-02 08:05:00 4
.
希望得到如下结果:
CDATE CTIME DEGREE
2002-01-01 2002-01-01 08:00:00 2
2002-01-01 2002-01-01 08:05:00 2
.
2002-01-01 2002-01-02 08:00:00 4
2002-01-02 2002-01-02 08:05:00 4
.