santanudas
Technical User
Hi all,
I need some help to write a SQL query. I’ve an array say ‘Array(x, y,....)’ where the number of the elements and their values are not static. It changes both the number of the elements and their values time to time. Now the SELECT query should be like this:
SELECT * FROM [tblRoom] WHERE [XXX] = 'x' AND [XXX] = ‘y’;
when 'Array(x,y)'
Or
SELECT * FROM [tblRoom] WHERE [XXX] = 'a' AND [XXX] = ‘b’ AND [XXX] = ‘c’; when 'Array(a,b,c)' and so on...
That means it has to search row-by-row with array values I guess.
I’ll be really grateful to you if any body can give me a clue.
Thank you in advance.
Santanu