IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Convert rows and column into JSON format.


 
IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dinesh Manivannan

New User


Joined: 17 Mar 2008
Posts: 17
Location: India

PostPosted: Sun Sep 03, 2017 6:50 pm
Reply with quote

Hello all....

I need to convert the rows and columns fetched from SELECT into JSON format.
SQL Server seems to have FOR JSON to perform this operation. Googled but could not find any appropriate result.

Need something like attached image.

Thanks in advance!
Dinesh
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10696
Location: italy

PostPosted: Sun Sep 03, 2017 8:18 pm
Reply with quote

googling with db2 json data import export
returned about 350000 hits

why not keep searching Yourself ?
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2502
Location: NY,USA

PostPosted: Tue Sep 05, 2017 9:31 pm
Reply with quote

Use a SQL interface to handle JSON data in DB2 11 for z/OS
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Can we Insert duplicates in Primary U... DB2 0
No new posts Date format conversion DFSORT/ICETOOL 4
No new posts NOT ABLE TO FIND DB2 ROWS DB2 2
No new posts Need to read duplicate rows from tabl... DB2 3
No new posts COnvert a column with mix of hex ,cha... DB2 5

Back to Top