Postgresql json like query

后端 未结 4 1679
别跟我提以往
别跟我提以往 2021-02-02 06:02

I have the following table called module_data. Currently it has three rows of entries:

                id                               data
0ab5203b-9157-4934-         


        
4条回答
  •  逝去的感伤
    2021-02-02 06:42

    I found the following is more straight-forward and easier for jsonb type of columns:

    select * from table_name
    where 
    column_name::text like '%Something%'
    

    Found a good article on more examples and implementations: https://www.compose.com/articles/faster-operations-with-the-jsonb-data-type-in-postgresql/

    Hope it helps!

提交回复
热议问题