I have an mnesia table with fields say f1, f2, f3. Now if I were to select all the rows with the field value as V1, I would use mnesia:select
and match specifications or a simple mnesia:match_object
. Now I need to select all the rows which have V1, V2, V3 ... or Vn (a list of arbitrary length) as the value for field f1. In SQL I would do something like
SELECT * FROM tablename WHERE f3 IN (V1, V2, V3, ... , Vn)
How do I do this in mnesia?