在函数中定义
create function slot (@intime datetime ,@outtime datetime,@slot char(100),@maxslot varchar(100))
returns decimal(20,1)
现在我想把 @intime 假设为‘2012-8-8 20:12’想把这个里面的小时数20取出来,并在下面的代码中使用,
这个是随机出现的时间,只能用字段来体现除了
create function slot (@intime datetime ,@outtime datetime,@slot char(100),@maxslot varchar(100))
returns decimal(20,1)
现在我想把 @intime 假设为‘2012-8-8 20:12’想把这个里面的小时数20取出来,并在下面的代码中使用,
这个是随机出现的时间,只能用字段来体现除了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货