Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

json array to string in postgresql

	SELECT string_agg(trim(tdata::text, '"'), ', ') from jsonb_array_elements(CAST('[1 , 2]' as jsonb)) tdata
Comment

json array to string in postgresql

SELECT 
	ID
	,(
		SELECT string_agg(trim(JsonString::text, '"'), ', ')
		FROM jsonb_array_elements(JsonData->'Name') JsonString
	) AS StringArray
FROM   tbl_TestJsonArray;
Comment

PREVIOUS NEXT
Code Example
Javascript :: angular 404 on refresh 
Javascript :: login page link shopify 
Javascript :: javascript how to check if element is visible on screen 
Javascript :: mock a function jest react 
Javascript :: array to string javascript without commas 
Javascript :: js onclick change styles 
Javascript :: remove from object javascript 
Javascript :: pageyoffset jquery 
Javascript :: js pow 
Javascript :: async setstate useeffect 
Javascript :: add array of object to state react 
Javascript :: get time from date 
Javascript :: submit form in vue 
Javascript :: random string from array javascript 
Javascript :: django jquery 
Javascript :: jquery window trigger resize 
Javascript :: Node.js get cpus 
Javascript :: how to generate unique id in node js 
Javascript :: react open pdf in new tab 
Javascript :: npm auth0-react 
Javascript :: dynamic select option dropdown in jquery 
Javascript :: javascript string contains function 
Javascript :: react native responsive font 
Javascript :: check if any property of object is null javascript 
Javascript :: disable a button in javascript 
Javascript :: how to get a record in dynamodb nodejs 
Javascript :: mongoose validate on update 
Javascript :: how to hide component in react 
Javascript :: automatically scroll to bottom of page javascript 
Javascript :: local string method 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =