高手请进,看看有没有好的解决方法 时间点如何相加,时间段是可以的。愉快的登山者 ⊙◢◣◢◣◢◣ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 create table table1(tid int,outtime datetime)insert table1 select 1004,'1900-01-01 00:02:42'insert table1 select 1000,'1900-01-01 00:00:16'insert table1 select 1003,'1900-01-01 00:00:47'insert table1 select 1000,'1900-01-01 00:00:23'select tid, dateadd(ss, sum(datediff(ss, '1900-01-01 00:00:00', outtime)),'1900-01-01 00:00:00') from table1 group by tidtid ----------- ------------------------------------------------------ 1000 1900-01-01 00:00:39.0001003 1900-01-01 00:00:47.0001004 1900-01-01 00:02:42.000(所影响的行数为 3 行)愉快的登山者 ⊙◢◣◢◣◢◣ 一条菜鸟SQL问题 有没有办法设置sql server的bit字段默认值是0? SQL2000触发器问题 sql查询!很急的! 请问怎么实现sqlserver 2008 express的远程连接? 这个:相同数据只取一个的视图如何生成 高分赠送! 请教各位如何优化这个存储过程增加运行速度 急:sql server表,大概有100万条记录,要定期删除其中的 我写了几个存储过程来操作20000多条记录的数据库表,在一台服务器上运行3到4次速度还好,但是以后运行就非常慢了为什么?系统(winnt+sql 数据库分配空间问题 如何在oracle里改表的列名
tid int,
outtime datetime)
insert table1 select 1004,'1900-01-01 00:02:42'
insert table1 select 1000,'1900-01-01 00:00:16'
insert table1 select 1003,'1900-01-01 00:00:47'
insert table1 select 1000,'1900-01-01 00:00:23'select tid, dateadd(ss, sum(datediff(ss, '1900-01-01 00:00:00', outtime)),'1900-01-01 00:00:00')
from table1 group by tidtid
----------- ------------------------------------------------------
1000 1900-01-01 00:00:39.000
1003 1900-01-01 00:00:47.000
1004 1900-01-01 00:02:42.000(所影响的行数为 3 行)愉快的登山者 ⊙
◢◣◢◣◢◣