Wir holen uns Daten eines Webservices mit den SQL-Funktionen aus SYSTOOLS.
Z,B.:
Wir haben 7.3. Ich glaube, JSON_TABLE kam erst mit 7.3.Code:select * from JSON_TABLE(systools.httpGetClob(:url,:header), '$' columns( totalHits decimal(12) PATH 'lax $.totalHits', offset decimal(12) PATH 'lax $.offset', limit decimal(12) PATH 'lax $.limit', nested '$.hits[*]' columns( hits_type varchar(40) path 'lax $.type', hits_id decimal(15) path 'lax $.id', hits_score decimal(15, 6) path 'lax $.score', hits_anschrift varchar(500) path 'lax $.anschrift' ) ) ) as liste order by hits_score desc;
Dieter
![[NEWSboard IBMi Forum]](images/duke/nblogo.gif)



Mit Zitat antworten
Bookmarks