[erlang-questions] Mnesia and automatic generation of primary keys

Matej Kosik kosik@REDACTED
Mon Jul 2 16:11:39 CEST 2007


Philip Robinson wrote:
> On 7/2/07, Matej Kosik <kosik@REDACTED> wrote:
>> Now when I am thinking about tables I need and their attributes, I
>> would like to generate unique primary keys for new entries to certain
>> tables (where none of their attributes is a clear candidate for
>> primary key).
> 
> Matej,
> 
> Have you tried mnesia:dirty_update_counter/2 & /3?
> 
> Cheers,
> Philip
> 

Thank you (both). This will probably work for me.
-- 
Matej Kosik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070702/f03c0b1e/attachment.bin>


More information about the erlang-questions mailing list