sqlserver 语句执行了多长时间

declare @begin_date datetime
declare @end_date datetime
select @begin_date = getdate()
SELECT TOP 1000 * FROM BEIYI_DEVICE_REPORT_RECORD_LOG WHERE DATEDIFF(DAY, drri_data_time, GETDATE()) >80
select @end_date = getdate()
select datediff(ms,@begin_date,@end_date) as '用时/毫秒'

你可能感兴趣的:(sqlserver,数据库)