My concern is related to working with an array of strings. The specific situation involves:
let search = ["user","country"];
In order to retrieve data from a MySQL database, I am looking to utilize the LIKE
operator.
An example of what I am attempting to achieve is shown below:
searchStmnt = `u.u_fullname LIKE "%` + search + `%"`
Unfortunately, the code provided above does not seem to be functional. Any suggestions or guidance on how to successfully accomplish this task would be greatly appreciated.