Support for JSON in Oracle 11g(在 Oracle 11g 中支持 JSON)
问题描述
Oracle 11g 是否支持 JSON?我的意思是在 PL/SQL 查询中操作 JSON 对象之类的东西.我知道 Oralcle 12c 支持这些东西,但 11g 似乎没有.
Does Oracle 11g support JSON? I mean stuff like manipulating JSON objects in PL/SQL Queries. I know Oralcle 12c has the support for these things but it seems 11g does not.
我主要关心的是是否可以在 PL/SQL 代码中处理从 RESTfull API 调用(使用 UTL_HTTP 包)返回的 JSON 对象.
My main concern is whether it is possible to handle JSON objects returned from RESTfull API calls (using UTL_HTTP package) in PL/SQL code.
这就是我调用 RESTfull API 的方式:
This is how I call RESTfull APIs:
req := UTL_HTTP.BEGIN_REQUEST('https://xxxx/api/job/all', 'GET', 'HTTP/1.1');
UTL_HTTP.set_header(req, 'Content-Type', 'application/json');
UTL_HTTP.set_header(req, 'apikey','xxxxx');
resp := UTL_HTTP.GET_RESPONSE(req);
然后需要以某种方式将返回的 JSON 数据保存在表中.我的 Oracle 环境是:Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 位生产.
Then need to somehow save retruned JSON data in tables. My Oracle envirment is: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.
有什么想法吗?
谢谢.
推荐答案
不,在 Oracle 数据库 12c 第 2 版 (12.1.0.2) 中引入了 JSON 支持
No, JSON support was introduced in Oracle database 12c release 2 (12.1.0.2)
问候
这篇关于在 Oracle 11g 中支持 JSON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Oracle 11g 中支持 JSON
基础教程推荐
- 什么是 orradiag_<user>文件夹? 2022-01-01
- 如何在 SQL 中将 Float 转换为 Varchar 2021-01-01
- 在 MySQL 中:如何将表名作为存储过程和/或函数参数传递? 2021-01-01
- MySQL 中的类型:BigInt(20) 与 Int(20) 2021-01-01
- mysql选择动态行值作为列名,另一列作为值 2021-01-01
- 在多列上分布任意行 2021-01-01
- 表 './mysql/proc' 被标记为崩溃,应该修复 2022-01-01
- 如何根据该 XML 中的值更新 SQL 中的 XML 2021-01-01
- oracle区分大小写的原因? 2021-01-01
- 二进制文件到 SQL 数据库 Apache Camel 2021-01-01
