× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Changing the primary key of a table would be asking for trouble. I
don't see how not having the physical keyed would save any effort.
But if it did, you could accomplish the same thing simply by not ever
referencing the primary directly and instead reference a logical with
the same key.

As far as doing something that would temporarily require the
violation, I'd used a temporary table that didn't have the primary
key. Or if you use SQL DDL to define the table in the first place,
you could temporarily drop the primary key constraint.

I've never wished a physical wasn't keyed.

I've often wished one was.

Charles

On Thu, Mar 26, 2009 at 4:04 PM, Mike Cunningham
<mike.cunningham@xxxxxxx> wrote:
I would agree that every table should have a unique key. Isn't the question if that key should be defined by keying the physical file? There I would say no. Create a logical file over the physical that has the unique key definition. Makes future maintenance easier when the primary key changes for the table or you might need to do something to the table that would violate the unique key temporarily. In that case you just delete the logical file, do what you need to do and recreate the logical.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.