1

I have a CLOB Json in a column of a table with the following structure:

{"sources": [1,2,4]}

I'm trying to write a trigger that read the array [1,2,4] and performs some checks:

I'm trying using:

DECLARE
TYPE source_type IS TABLE OF NUMBER;
SOURCES source_type;
[...]
json_query(:NEW.COL, '$.sources') BULK COLLECT INTO SOURCES FROM dual;

but I got the error:

Row 1: ORA-01722: invalid number

Any ideas?

Connell.O'Donnell
  • 3,603
  • 11
  • 27
  • 61
user2010955
  • 3,871
  • 7
  • 34
  • 53

0 Answers0