【发布时间】:2016-04-13 10:25:51
【问题描述】:
我在 application express(apex) 中使用 oracle rest 数据服务。 我需要知道如何使用 Json 格式的 http 请求更新/插入数据库。其实我需要知道的,
请求是来自 REST 客户端的 Json 格式请求,
{
"items" : [
{"PROJECTID" : 1},
{"PROJ_NAME" : "rest"},
{"PROJ_CLIENT" : "Sam"}
],
"hasMore" : false
}
如何在 apex 中插入/更新数据库,
begin
insert into projects(PROJECTID,PROJ_NAME,PROJ_CLIENT)
values (:PROJECTID,:PROJ_CLIENT,:PROJ_NAME);
commit;
end;
【问题讨论】:
-
什么版本的 APEX?什么版本的数据库?
-
@scottWe 4.2 版
-
数据库版本可能更重要,因为 12c 中有许多 JSON 特定的 API
标签: oracle oracle-apex