[erlang-questions] Question: Limiting size of result set in mnesia

Kenneth Lundin kenneth.lundin@REDACTED
Mon Apr 28 14:32:31 CEST 2008


Hi,

You can use qlc
http://www.erlang.org/doc/man/qlc.html
 or you can use
mnesia:select/4 in combination with mnesia:select/1
http://www.erlang.org/doc/man/mnesia.html#select-4

/Kenneth Erlang/OTP, Ericsson


On 4/28/08, Ahmed Ali <ahmed.nawras@REDACTED> wrote:
> Hi All,
>
> Does anyone have an idea of how to limit size of result set in mnesia
> similar to the effect of LIMIT clause in the SQL query below in MySQL?
>
> SELECT * FROM Topic LIMIT 5;
>
> Best regards,
>
> Ahmed Al-Issaei
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list