[erlang-questions] How to get a unique id from mnesia.

Guorui Ji jiguorui@REDACTED
Sat Dec 15 11:05:49 CET 2007


I'm sorry for this question.

I find the same question in past list!!!

mnesia:dirty_update_counter/3


But is it the best way to do this?

On Dec 15, 2007 5:56 PM, Guorui Ji <jiguorui@REDACTED> wrote:

> I need your help, all!!
>
> for example:
>
> -record(item, {uid, name}).
>
> I want create a table to store the item record, and the item.uid is a
> auto-increament unique id.
>
> How to do it. Does mnesia have a build-in method?? I have not found!!!
>
> Thanks!!!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20071215/08ea32af/attachment.htm>


More information about the erlang-questions mailing list