【发布时间】:2020-03-09 22:55:47
【问题描述】:
【问题讨论】:
-
您在链接到的问题中看到的所有 json_.... 函数都可以从 pl/sql 中使用(因此在存储过程中)。关于数据库中 JSON 的 Oracle 文档有一个 whole book。
标签: json oracle stored-procedures
【问题讨论】:
标签: json oracle stored-procedures
您可能已经在数据库中安装了APEX_JSON package(Oracle APEX 随附)。
例如(来自链接的文档):
BEGIN
apex_json.open_object; -- {
apex_json.write('a', 1); -- "a":1
apex_json.open_array('b'); -- ,"b":[
apex_json.open_object; -- {
apex_json.write('c',2); -- "c":2
apex_json.close_object; -- }
apex_json.write('hello'); -- ,"hello"
apex_json.write('world'); -- ,"world"
apex_json.close_all; -- ]
-- }
END;
【讨论】: