-- EXAMPLE TABLE STRUCTURE:
CREATE TABLE LDAP_USERS.API_LOG
(
DATETIME DATE,
JSONCOLUMN CLOB
)
-- JSON STRUCTURE:
{ keyname1: value1, keyname2: value2, ... }
-- SELECT EXAMPLE
SELECT a.*, j.*
FROM YOURSCHEMA.yourtable a,
JSON_TABLE ( a.JSONCOLUMN,
'$' COLUMNS(
keyname1 VARCHAR(10) PATH '$.keyname1',
keyname2 VARCHAR(10) PATH '$.keyname2'
)
) as j