SQL 检查语句执行时间(毫秒)
use DATABASExxx DECLARE @st DATETIME = GETDATE() SELECT * FROM tableXXX SELECT DATEDIFF(MS, @st, GETDATE()) AS 执行时间
use DATABASExxx DECLARE @st DATETIME = GETDATE() SELECT * FROM tableXXX SELECT DATEDIFF(MS, @st, GETDATE()) AS 执行时间