码迷,mamicode.com
首页 > 其他好文 > 详细

gfh

时间:2018-04-17 16:57:56      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:float   duration   star   complete   convert   sel   row   HERE   obj   

SELECT A.TextData,A.Duration,A.SPID,A.ClientProcessID,A.IntegerData,A.EventSequence,B.tablename FROM   (SELECT   event_text,  TextData,  CONVERT(DECIMAL(18,2),  CONVERT(FLOAT,Duration)/1000000) Duration,  CPU,  Reads,  Writes,  SPID,  ClientProcessID,  IntegerData,  RowCounts,  EventSequence,  CONVERT(VARCHAR(12),StartTime,114)StartTime,  CONVERT(VARCHAR(12),EndTime,114)EndTime,  HostName,  ApplicationName,  ObjectName   FROM U9_20160531_0800_1000ms   LEFT JOIN int_to_event   ON EventClass=event_code WHERE event_text=‘SP:StmtCompleted‘)AS A  LEFT JOIN 20160531_0800_1000ms_usedtables AS B  ON A.EventSequence=B.eventsequence ;

gfh

标签:float   duration   star   complete   convert   sel   row   HERE   obj   

原文地址:https://www.cnblogs.com/nowheretrix/p/8867240.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!