Y
Hacker News
new
|
ask
|
show
|
jobs
by
panda17
2062 days ago
In general there can be more than one candidate key for a given relation (table). Only one candidate key is "primary", all others are "alternate".
1 comments
mulmen
2062 days ago
Thanks that makes sense.
Is this an industry term or are you just using it here to emphasize the difference?
link
dspillett
2061 days ago
I've seen alternate used in other places to refer to candidate keys that are not currently the primary key, though I'm fairly sure it isn't a defined standard term.
link
marcos100
2061 days ago
Industry term. But it is usually unknown to people who tend to use id as primary key for every table.
link
mulmen
2061 days ago
Do you mean synthetic keys rather than natural keys?
link
Is this an industry term or are you just using it here to emphasize the difference?