Sql server语句执行时间查看

/*语句执行时间查看*/
declare @begin_date datetime
declare @end_date datetime
select @begin_date = getdate()
SELECT COUNT(*) AS CNT FROM Student
select @end_date = getdate()
select datediff(ms,@begin_date,@end_date) as '用时/毫秒'

posted on 2020-12-16 21:00  迷途行者  阅读(912)  评论(0编辑  收藏  举报

导航