Wednesday, November 13, 2024

PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'

 

References:

[1] https://popsql.com/learn-sql/postgresql/how-to-query-a-json-column-in-postgresql

No comments:

Javascript DEBUG functions

    Object . entries ( obj ) const obj = { foo : "bar" , baz : 42 } ; console . log ( Object . entries ( obj ) ) ; // [ [...