Answer the question
In order to leave comments, you need to log in
Is it possible to output data in json format in BD Oracle 10g?
Good day.
Can you please tell me if it is possible to make a similar request in Oracle bd 10g?
SELECT menu_main.id,
menu_main.name,
( SELECT array_to_json(array_agg(row_to_json(child.*))) AS array_to_json
FROM ( SELECT menu_second.type,
menu_second.name,
(menu_main.link::text || '-'::text) || menu_second.link::text AS link
FROM menu_second
WHERE menu_second.mainmenu = menu_main.id
ORDER BY menu_second.orders) child) AS items
FROM menu_main;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question