D
D
Dmitry2019-12-22 18:01:02
MySQL
Dmitry, 2019-12-22 18:01:02

Is it possible to configure select in the database to return data as json, and not an array as usual?

Actually in issue the line is necessary.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dllweb, 2019-12-22
@inilim

SELECT JSON_OBJECT(name, value, name, value) as jsonData FROM table ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question