declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() SELECT * FROM HotelInfo //查询语句 select @end_date = getdate() select datediff(ms,@begin_date,@end_date) as ‘用时/毫秒‘
时间: 2024-11-05 20:43:28
declare @begin_date datetime declare @end_date datetime select @begin_date = getdate() SELECT * FROM HotelInfo //查询语句 select @end_date = getdate() select datediff(ms,@begin_date,@end_date) as ‘用时/毫秒‘