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

.
Menu