How To Insert Json Data Of Json_0bject_t Type Using PlsqlHow To Insert Json Data Of Json_0bject_t
(Doc ID 2490027.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
Attempts to generate json data using json_object_t datatype and inserting into it are returning errors:
create table s1 ( s varchar2(32767));
alter table S1 add constraint SCK check(S IS JSON) ENABLE;
DECLARE
r_js json_object_t;
BEGIN
r_js := JSON_OBJECT_T('{ "employee_no":9999 }');
insert into s1 values (r_js.to_string);
commit;
END;
/
Error report -
ORA-40573: Invalid use of PL/SQL JSON object type.
ORA-06512: at line 5
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |