获得时间差 select cast(datediff(minute,'2004-10-06',getdate())/60.0 as decimal(18,2)) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select cast(cast(datediff(mi,起始时,终止时间) as numeric(8,2))/60 as numeric(8,2)) 你是需要得到小时数吧?select cast(cast(datediff(hh,起始时,终止时间) as numeric(8,2))/60 as numeric(8,2)) select convert(nvarchar(8),time1,108),convert(nvarchar(8),time2,108),convert(decimal(8,2),(datediff(mi,convert(nvarchar(8),time1,108),convert(nvarchar(8),time2,108))/60 )) from table web页面向sql提交了一条命令,web页面关闭后,sql还运行吗? 求助:根据字段是否null更新数据的存储过程 如何用select 语句查询后,输出指定类型数据 简单问题:年龄不同 dtproperties 是表? 如何对两个表使用 UNION 后再使用 GROUP BY呢? 数据库设计 insert语句分析 我装了一台sqlserver2000,只能有5个连接限制?为什么? 那位有数据库设计说明书的样本,满意就给100分! 请教一个SQL的写法 可不可以用select语句从存储过程中取得数据
select cast(cast(datediff(hh,起始时,终止时间) as numeric(8,2))/60 as numeric(8,2))
convert(decimal(8,2),(datediff(mi,convert(nvarchar(8),time1,108),convert(nvarchar(8),time2,108))/60 )) from table