Subject | RE: [ib-support] Primary key question |
---|---|
Author | Rado Benc |
Post date | 2001-07-23T08:45:14Z |
Hi Nico,
situation. If I understand databases correctly - records should be
uniquely identified. If there is nothing that would identify records
(articles), you should create it.
gigabytes of space. :-)
with identifying articles uniquely.
Regards,
Rado
> I have a little problem. My customer wants a table withWhatever you customer wants, I would use surrogate key in this
> his articles (approximatly 100.000 records). The problem is :
> for some articles , there is no article number. I was planning
> to design a table with Article_ID as the primary key. So it
> won't work anymore. Now, I guess I have to use a surrogate key,
> with numbers generated by a generator. Isn't that a little bit
> wasted space ? That field doesn't have really a meaning, but I
> think it's the only way do do it ?
situation. If I understand databases correctly - records should be
uniquely identified. If there is nothing that would identify records
(articles), you should create it.
> Isn't that a little bit wasted space ?In 2001 - no. I heard that some companies sell disks with tens of
gigabytes of space. :-)
> That field doesn't have really a meaning, but I think it's the onlyThat field will uniquely identify articles. It will eliminate troubles
> way do do it ?
with identifying articles uniquely.
Regards,
Rado