Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

json with postgresql


        
            
        
     SELECT info ->> 'customer' AS customer,
	info -> 'items' ->> 'product' AS product
FROM orders
WHERE CAST ( info -> 'items' ->> 'qty' AS INTEGER) = 2
Source by www.postgresqltutorial.com #
 
PREVIOUS NEXT
Tagged: #json #postgresql
ADD COMMENT
Topic
Name
4+2 =