Quantcast
Channel: Postgresql json like query - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Deep Sehgal for Postgresql json like query

I found the following is more straight-forward and easier for jsonb type of columns:select * from table_namewhere column_name::text like '%Something%'Found a good article on more examples and...

View Article


Answer by nevster for Postgresql json like query

One other option which may be sufficient for other people who've found this page is to just cast the column to text type. Egselect * from module_data where data::text like '%Board%'Note though, this...

View Article


Answer by Karansing for Postgresql json like query

I Think it should be like select * from module_data where data->>'$."title"' like '%Board%'then only it worked for me.

View Article

Answer by Gurwinder Singh for Postgresql json like query

If the data column is text type, then use ->> on cast:select * from module_data where data::json->>'title' like '%Board%'If it's already json:select * from module_data where...

View Article

Postgresql json like query

I have the following table called module_data. Currently it has three rows of entries: id data0ab5203b-9157-4934-8aba-1512afb0abd0 {"title":"Board of Supervisors...

View Article

Browsing latest articles
Browse All 5 View Live


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