Postgres select rows from table where variable in JSONB array

前端 未结 0 399
有刺的猬
有刺的猬 2020-12-08 03:57

I\'m trying to get rows in my DB where each contains a value in the JSONB column. What I have so far is

    SELECT *
    FROM users
    WHERE roles @> \'[{         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题