Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Transform table data into json or xml format in SAP HANA SQL Script

$
0
0

Hello Venkatesh,

 

SQLScript does not provide out of the box the options to convert data to JSON or XML. Of course you could implemented a simple JSON creator with imperative logic in SQLScript, but I think you will not have fun with that.

 

Would it be an option to use XSJS to convert your data to JSON with well-known JavaScript capabilities? You could select your data from the XSJS script using the HDB interface (e.g. JSDoc: Namespace: hdb) or calling a procedure (e.g. JSDoc: Namespace: procedures) which delivers the data and convert the it to JSON for further processing.

 

Best Regards,

Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>