0
I have the query below, where are captured the 3 largest memory consuming processes on the machine. I would like my select to display only the pid and the name of the process contained in {name: }
SELECT NORMAL
top_mem
-----------------------------------------------------------------------
12555, {memory_percent: 3.6073870265949464, name: code},10581, {memory_percent: 5.82421985505014, name: VirtualBoxVM},11518, {memory_percent: 13.986433224706513, name: java}
SELECT DESIRED (MATRIX)
12555, code
10581, VirtualBoxVM
11518, java
QUERY
SELECT top_mem FROM tbl_top_consum_hosts WHERE (top_mem regexp '^name[a-z]')
hey hello! in the normal select has only one row with all records? could show the table structure ?
– Ana Teixeira
I find it easier to handle this outside of SQL, any language has functions that handle strings more easily (and perhaps without needing regex, since some splits should solve...)
– hkotsubo
Thanks for the tip, I will test in python!
– Luis Henrique