Tuesday, May 16, 2017

sql query with string array in where condition

Sometimes easy things look tricky like this title question.

SQL query to fetch records matching strings in an array can be written like below.

Select * from myTable where myString in ("ABC","def","xyz")

#### Happy Coding ####

No comments:

Post a Comment