Answer the question
In order to leave comments, you need to log in
How to get rid of quotes when concat and json_extract?
The request is the following:
SELECT concat(
json_extract(additional,'$.surname'),
json_extract(additional,'$.firsname'),
json_extract(additional,'$.lastname')
)
FROM `user_attributes`
"Петров""Петр""Петрович"
Answer the question
In order to leave comments, you need to log in
JSON_UNQUOTE
SELECT concat(
JSON_UNQUOTE(json_extract(additional,'$.surname')),
JSON_UNQUOTE(json_extract(additional,'$.firsname')),
JSON_UNQUOTE(json_extract(additional,'$.lastname'))
) fullname
FROM `user_attributes`
;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question