Question

I am using amazons SimpleDB. My question is simple. I have an array say [1,2,3,4]. I need to query my domain in a manner so that if a particular column's value is in this array that row should be selected.

Is this possible or do I have to write multiple query and run a loop?

Était-ce utile?

La solution

Use IN Function

e.g.

SELECT * FROM [Table]  WHERE [COLUMN_NAME] IN ('1','2','3','4')
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top