Professional Documents
Culture Documents
Instead of Trigger: Create OR Replace Trigger OF Update ON Names Declare
Instead of Trigger: Create OR Replace Trigger OF Update ON Names Declare
DECLARE
v_json CLOB;
v_zebra_t JSON_OBJECT_T;
BEGIN
SELECT json_col
INTO v_json
FROM json_data
-- Parse the JSON and put the new Name value in place
v_zebra_t := JSON_OBJECT_T.PARSE(v_json);
v_zebra_t.PUT('Name',:NEW.Name);
-- Set v_json
v_json := v_zebra_t.TO_STRING;
UPDATE json_data