Search notes:

Oracle SQL: Combining JSON_TABLE with JSON_ARRAY

column num format 999
column txt format a11
column tim format a29
 
select *
from
   json_table( json_array( 42, 'Hello world', systimestamp ),
     '$' columns (
           num  number   ( 3) path '$[0]',
           txt  varchar2 (20) path '$[1]',
           tim  timestamp     path '$[2]'
       )
   );
--  
--  NUM TXT         TIM                         
-- ---- ----------- -----------------------------
--   42 Hello world 2023-09-20 09:07:57.933246000
select *
from
   json_table( json_array( 42, 'Hello world', systimestamp ),
     '$[*]' columns (
           col  varchar2(50) path '$[0]'
       )
   );
--  
-- COL                                              
-- --------------------------------------------------
-- 42
-- Hello world
-- 2023-09-20T11:20:45.011805Z

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758193700, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/functions/json/table/json_array(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78