Generating unique ids in Mnesia

Joel Reymont <>
Thu Aug 18 17:12:08 CEST 2005


Thanks for the tip but I need sequential, increasing numerical  
values. I would like my records to be sequantially numbered and the  
sequence number to increase every time I insert a record. How do I  
manage that?


On Aug 18, 2005, at 4:46 PM, Hakan Mattsson wrote:

> You can use
>   erlang:now()
> or
>   {node(), erlang:now()}
> in a multi node system.

More information about the erlang-questions mailing list