CREATE TABLE APPLICATION
(
applicationId VARCHAR2(36),
customerId VARCHAR2(36),
assignee VARCHAR2(36),
status VARCHAR2(36),
applicationDate TIMESTAMP,
closerDueDate TIMESTAMP,
closedDate TIMESTAMP,
application blob ,
CONSTRAINT application CHECK(application IS JSON FORMAT JSON)) LOB (application) STORE AS(STORAGE (NEXT 15M))
Table created.
insert into application (application) values (to_blob(utl_raw.CAST_TO_RAW('{
"fields" : {
"Customerid" : "AutomationRuleSet"
}
}')))
1 row(s) inserted.
select app.application
from application app
where json_exists(app.application format json, '$.fields.Customerid')
APPLICATION | [unsupported data type] |
---|
select json_value(app.application format json, '$.fields.Customerid')
from application app
where json_value(app.application format json, '$.fields.Customerid') = 'AutomationRuleSet'
JSON_VALUE(APP.APPLICATIONFORMATJSON,'$.FIELDS.CUSTOMERID') | AutomationRuleSet |
---|
select JSON_QUERY(app.application format json, '$.fields')
from application app
JSON_QUERY(APP.APPLICATIONFORMATJSON,'$.FIELDS') | {"Customerid":"AutomationRuleSet"} |
---|
select app.application From application app
where json_query(app.application, '$.fields.CustomerID') = 'AutomationRuleSet'
no data found
drop table application purge
Table dropped.