SQLServer 计算运行时间
1 declare @d datetime 2 set @d=getdate() 3 SELECT * FROM [TestDB].[dbo].[Test_Unit_History]//替换运行的语句 4 select [语句执行花费时间(毫秒)]=datediff(ms,@d,getdate())
数据库索引意义:https://blog.csdn.net/weixin_30877227/article/details/95769765?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-2-95769765-blog-5464104.pc_relevant_3mothn_strategy_and_data_recovery&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-2-95769765-blog-5464104.pc_relevant_3mothn_strategy_and_data_recovery&utm_relevant_index=3