哪位大虾能帮忙把下面的VBS函数写成对应SQL的用户自定义函数啊?急求!
哪位大虾能帮忙把下面的VBS函数写成对应SQL的用户自定义函数啊?急求!
函数1:
function xinxifei(timesec)
if timesec mod 60 then
timemin=(timesec\60)+1
else
timemin=timesec/60
end if
xinxifei=timemin*0.6
end function
函数2:
function tonghuafei(timesec)
if timesec mod 60 then
timemin=timesec\60+1
else
timemin=timesec/60
end if
if timemin<=3 then
tonghuafei=0.2
else
tonghuafei=(timemin-3)*0.1+0.2
end if
end function