insert a record

Bengt Kleberg bengt.kleberg@REDACTED
Wed May 18 07:58:32 CEST 2005

Dietmar Schaefer wrote:
> Hi !
> Is there a way of inserting a record into a database without specifying 
> the index ?


> Index must be in the range (1..40) but should be supplied automatically !

i do not know of such a thing. my knowledge is very limited and there 
might be one.

however, i would suggest that you do this manually. have an insert 
function that takes the members of #centerDisplayProcessesList{}, and 
another insert function that takes all members minus the index. the 
latter function could find out the correct index (if there is one) or 
just randomise one. and then call the first insert function.


More information about the erlang-questions mailing list