When you find yourself doing sequential numbering of columns it is a big fat red flag that your DB design is wrong. You need to fix the DB before you do anything. Learn “Database Normalization”.
I agree that the schema is wonky. The “goods” field is JSON which might be better when the field value is going to be worked with as JSON. But any advantage it offers in that respect comes at the cost of making it more difficult for the database to work with the field.
I would be tempted to redesign the database, or if unable to do that, have the server-side code do the work instead of the database.
I am storing huge data set into one column which is named as " Goods". But my table contains only 2 columns. Id,goods respectively. I think DB design is not a problem.
Bcoz , My all data is accommodated into one table. But hereafter I want to group all rows into one row.
Then I want to store the output data into new field that is into only one cell.