[erlang-questions] Mnesia queries

Bob Cowdery Bob.Cowdery@REDACTED
Tue Dec 11 15:11:28 CET 2007


I need a little help with mnesia queries. I want to parameterise the query but can't seem to find any examples of how to do that. The general form seems to be

qlc:q([X#rec.bar || X <- mnesia:table(foo), X#rec.bar == baz])

If I now want to select columns at run time is there some way I can construct the left side of the qlc.

Thanks
Bob






More information about the erlang-questions mailing list