In the base of CreditPrograms there is a column "Data" containing a jsonb object of the following type:
{ "RegionsActivity":[ 23 ] } I want to search the RegionsActivity array:
select * from "CreditPrograms" WHERE 23 = ANY("Data"->'RegionsActivity') This syntax was taken from the documentation https://postgrespro.ru/docs/postgrespro/9.5/arrays
but postgre gives the error:
[42601] ERROR: syntax error at or near "array"