Fetch data in array format in mysql

as shown in the figure, the data I want to take out is in the format of figure 2. How to write the sql statement, only take out market_value and timestamp_day

Mar.02,2021

first fetch the corresponding column data with sql. select market_value,timestamp_day from table_name
takes out an array of objects, and then converts it into a two-dimensional array

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36077-2c00c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36077-2c00c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?