declare @d datetime set @d=getdate() select * from zzx select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())