30 Matching Annotations
  1. Sep 2022
  2. Jul 2021
  3. Jun 2021
  4. May 2020
    1. If you have variable number of ids (or you have a lot of them), you can use json[b]_array_elements() to extract each element of the array, build up an id list and then query it with the any-containment operator ?|: select * from jsonbtest where to_json(array(select jsonb_array_elements(data) ->> 'id'))::jsonb ?| array['1884595530', '791712670'];
  5. Apr 2020