|
Re: primary key in mnesia: msg#00287lang.erlang.general
On Mon, 26 Jan 2004, Mohammad Reza Moosavi wrote: Mohammad> How can I define a multi attribute primary key for a table? You can't. Mohammad> for example a table based on record f: Mohammad> -record(f,{f1,f2,f3,f4}). Mohammad> I want to have {f2,f3} as primary key, with no constraint on f1. Instead you can have an arbritary complex Erlang term as primary key. You need to redefine your record like: -record(f,{f23,f1,f4}). in order to have {f2,f3} as primary key. /Håkan --- Håkan Mattsson Ericsson High Availability Software, DBMS Internals http://www.erlang.org/~hakan/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | GS keypress event args: 00287, WILLIAMS Dominic |
|---|---|
| Next by Date: | SMPP v5.0 erlang implementation: 00287, Enrique Marcote Peña |
| Previous by Thread: | primary key in mnesiai: 00287, Mohammad Reza Moosavi |
| Next by Thread: | GS keypress event args: 00287, WILLIAMS Dominic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |