declare @begindate datetime select @begindate=getdate() select 执行时间=datediff(mm,@begindate,getdate())