- 论坛徽章:
- 0
|
有一文件内容如下:(Text开头的都是一行)结果最好能按照 Elapsed Execution Time的后面的时间大小排列
Text : CALL SYSIBM.SQLTABLES(?,?,?,?,?)
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 0
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 0
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 0
Bufferpool index physical reads: 0
Elapsed Execution Time: 0.000012 seconds
Text : SELECT CAST( NULL AS VARCHAR(12 ) AS TABLE_CAT, RTRIM(T.CREATOR) AS TABLE_SCHEM, T.NAME AS TABLE_NAME, CASE WHEN T.TYPE='T' AND T.CREATOR='SYSIBM' THEN 'SYSTEM TABLE' WHEN T.TYPE='T' AND T.CREATOR<>'SYSIBM' THEN 'TABLE' WHEN T.TYPE='V' AND T.STATUS<>'X' THEN 'VIEW' WHEN T.TYPE='V' AND T.STATUS='X' THEN 'INOPERATIVE VIEW' WHEN T.TYPE='X' THEN NULL WHEN T.TYPE='N' THEN 'SYNONYM' ELSE TT.TABLE_TYPE END AS TABLE_TYPE, T.REMARKS FROM SYSIBM.SYSTABLES T, SYSIBM.SQLTABLETYPES TT WHERE T.TYPE = TT.TYPE AND T.CREATOR = 'PBCATOWN' AND T.NAME = 'pbcattbl' ORDER BY 4,1,2,3
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 0
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 0
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 0
Bufferpool index physical reads: 0
Elapsed Execution Time: 0.000232 seconds
Text : SELECT CAST( NULL AS VARCHAR(12 ) AS TABLE_CAT, RTRIM(T.CREATOR) AS TABLE_SCHEM, T.NAME AS TABLE_NAME, CASE WHEN T.TYPE='T' AND T.CREATOR='SYSIBM' THEN 'SYSTEM TABLE' WHEN T.TYPE='T' AND T.CREATOR<>'SYSIBM' THEN 'TABLE' WHEN T.TYPE='V' AND T.STATUS<>'X' THEN 'VIEW' WHEN T.TYPE='V' AND T.STATUS='X' THEN 'INOPERATIVE VIEW' WHEN T.TYPE='X' THEN NULL WHEN T.TYPE='N' THEN 'SYNONYM' ELSE TT.TABLE_TYPE END AS TABLE_TYPE, T.REMARKS FROM SYSIBM.SYSTABLES T, SYSIBM.SQLTABLETYPES TT WHERE T.TYPE = TT.TYPE AND T.CREATOR = 'PBCATOWN' AND T.NAME = 'pbcattbl' ORDER BY 4,1,2,3
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 0
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 0
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 0
Bufferpool index physical reads: 0
Elapsed Execution Time: 0.000422 seconds
RESULT:
Text : CALL SYSIBM.SQLTABLES(?,?,?,?,?)
Elapsed Execution Time: 0.000012 seconds
Text : SELECT CAST( NULL AS VARCHAR(12 ) AS TABLE_CAT, RTRIM(T.CREATOR) AS TABLE_SCHEM, T.NAME AS TABLE_NAME, CASE WHEN T.TYPE='T' AND T.CREATOR='SYSIBM' THEN 'SYSTEM TABLE' WHEN T.TYPE='T' AND T.CREATOR<>'SYSIBM' THEN 'TABLE' WHEN T.TYPE='V' AND T.STATUS<>'X' THEN 'VIEW' WHEN T.TYPE='V' AND T.STATUS='X' THEN 'INOPERATIVE VIEW' WHEN T.TYPE='X' THEN NULL WHEN T.TYPE='N' THEN 'SYNONYM' ELSE TT.TABLE_TYPE END AS TABLE_TYPE, T.REMARKS FROM SYSIBM.SYSTABLES T, SYSIBM.SQLTABLETYPES TT WHERE T.TYPE = TT.TYPE AND T.CREATOR = 'PBCATOWN' AND T.NAME = 'pbcattbl' ORDER BY 4,1,2,3
Elapsed Execution Time: 0.000232 seconds
Text : SELECT CAST( NULL AS VARCHAR(12 ) AS TABLE_CAT, RTRIM(T.CREATOR) AS TABLE_SCHEM, T.NAME AS TABLE_NAME, CASE WHEN T.TYPE='T' AND T.CREATOR='SYSIBM' THEN 'SYSTEM TABLE' WHEN T.TYPE='T' AND T.CREATOR<>'SYSIBM' THEN 'TABLE' WHEN T.TYPE='V' AND T.STATUS<>'X' THEN 'VIEW' WHEN T.TYPE='V' AND T.STATUS='X' THEN 'INOPERATIVE VIEW' WHEN T.TYPE='X' THEN NULL WHEN T.TYPE='N' THEN 'SYNONYM' ELSE TT.TABLE_TYPE END AS TABLE_TYPE, T.REMARKS FROM SYSIBM.SYSTABLES T, SYSIBM.SQLTABLETYPES TT WHERE T.TYPE = TT.TYPE AND T.CREATOR = 'PBCATOWN' AND T.NAME = 'pbcattbl' ORDER BY 4,1,2,3
Elapsed Execution Time: 0.000422 seconds |
|