D
D
di2020-05-27 15:25:12
MySQL
di, 2020-05-27 15:25:12

How to concatenate json arrays in Mysql?

There are lists of categories that are stored as json

and I can get them with one request

select
  categories_overprice
from
  items
where user_id = 288 and categories_overprice is not null


5ece5b3b5364c606822286.png

Question: is it possible to combine them somehow so that the query eventually returns one array to me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2020-05-27
@ThunderCat

concat, group_concat, although it is clear that these are all crooked solutions and, according to your mind, from the very beginning you should store all this as many to many.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question