declare @d datetime set @d=getdate() select * from sales_fact_19990101 select [执行时间(毫秒)]=datediff(ms,@d,getdate())