D
DTHL
Unregistered / Unconfirmed
GUEST, unregistred user!
我有一表用了datetime类型,但现在要按日期分组求和
eg:
create table t{
sysdate datetime,
mycount int
}
SELECT sysdate,sum(mycount)
GROUP BY sysdate // 有时间所以错的,怎么办?
eg:
create table t{
sysdate datetime,
mycount int
}
SELECT sysdate,sum(mycount)
GROUP BY sysdate // 有时间所以错的,怎么办?