关于日期统计的SQL语句怎么写? select datediff(mi,beginacst,endacst) *rent from tablename where..... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select datediff(day,beginDate,endDate) as 天数,..from tbl.... select datediff(dd,beginDate,endDate) * rent as aa from tablename select @a=rent*diffdate(day,begindate,enddate) from table print(@a) 不好意思,写错select @a=rent*datediff(day,begindate,enddate) from table print(@a) 关于项自增的一个问题 为什么会多出几条记录,谢谢大家 菜鸟问题:关于表变量 请教大侠,我在进行数据库完全备份恢复时出现提示"LSN(179:63:14)passed to log scan in database 'databasename' is invalid",不能恢复, 网络数据传输性能的问题 急求SQL语句 sqlserver 存储过程读取 如何在Cursor声明的时候使用Procedures? txt导入sql server的问题.不简单! 这段统计sql如何错了 刚开始学习数据库,请问 SQL连接问题,要哭死了,达人COME ON
from tbl
....
print(@a)
select @a=rent*datediff(day,begindate,enddate) from table
print(@a)