I am trying to do a wildcard search on one of the DB columns. The input params are passed as an array of string. Example:
{ name: ['John','Doe'] }
Need to return (id: 1, id:2) as first element matches id:1 and second element matches id: 2. How to effectively use like statement.
| name (string) | id | |------------------------|----| | John,steve | 1 | | clive,steve,Doe | 2 | | suzan | 3 |