Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はmnesiaテーブルを持っています:
-record(counter, { value, type, tree }).
この 3 つのフィールドからすべてのデータを取得するにはどうすればよいですか?
ありがとうございました。
テーブルのすべてのデータが必要ですか? 私の頭の上から:
mnesia:transaction(fun()-> qlc:e(mnesia:table(counter)) end).
同じことですが、より効率的です。
mnesia:async_dirty(fun()-> qlc:e(mnesia:table(counter)) end).
また、より速く: mnesia:dirty_match_object(#counter{_ = '_'}).
mnesia:dirty_match_object(#counter{_ = '_'}).