declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() -- sql 语句 放这里 select @end_date = getdate() select datediff(ms,@begin_date,@end_date) as ‘用时/毫秒‘
2021-09-01 04:33:51
declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() -- sql 语句 放这里 select @end_date = getdate() select datediff(ms,@begin_date,@end_date) as ‘用时/毫秒‘