mySQL-从命令输出中提取数据

时间:2018-07-10 18:48:47

标签: mysql

我正在运行以下MySQL命令:

SELECT service_id AS SERVICE_ID
     , display_name AS SERVICE_NAME
     , perfdata AS PERF_DATA
  FROM services 
 WHERE display_name LIKE 'Traffic%' 
 LIMIT 10;

输出:

+------------+-------------------------------------------+----------------------------------------------------------------------------------------------------------+
| SERVICE_ID | SERVICE_NAME                              | PERF_DATA                                                                                                |
+------------+-------------------------------------------+----------------------------------------------------------------------------------------------------------+
|      19563 | Traffic-Interface_Wan__0262495982         |                                                                                                          |
|      19591 | Traffic-Interface_Wan__0262914272         | traffic_in=335,1Bits/s traffic_out=391,7Bits/s                                                           |
|      19571 | Traffic-Interface_Wan__0262243728         | traffic_in=408,4Bits/s traffic_out=449,0Bits/s                                                           |
|      19726 | Traffic-Interface_Wan                     | traffic_in=437,1Bits/s traffic_out=3504,9Bits/s                                                          |

我想知道如何获取流量值以计算第95个百分点。

预先感谢

0 个答案:

没有答案