79393333

Date: 2025-01-28 09:45:42
Score: 2
Natty:
Report link

Firstly, the insert that you have used seems to be incorrect. Correct query: Insert into test values (‘{ “description”:”employee”, “criteria”: { “employee_id”:{ “in”:[10137,12137,19137] } } }’);

Next, the query to be used to retrieve the 2 ids,

select * from test where data ->’criteria’->’ employee_id’->’in’ ?& array[10137,12137];

Try the above and check if it works…

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Shweta gawade