各位大虾:
请问在sql server 2000怎么通过数据表中的时间与当前时间
的时间段来表中的值进行求和,请大虾们赐教,谢谢!
Sql server 2000自定义函数
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
threenewbee 2016-08-04 11:13关注select sum(*) from table where 时间字段 between 某时间 and now()
解决 无用评论 打赏 举报
各位大虾:
请问在sql server 2000怎么通过数据表中的时间与当前时间
的时间段来表中的值进行求和,请大虾们赐教,谢谢!
select sum(*) from table where 时间字段 between 某时间 and now()