What do you do if you have UserID used in a table twice?  Such as maybe if
you had the need to track the user who did the original record creation and
who the last user to update the record was?


I tend to prefix these "link tables" with LKP_ and I got into the habbit
because they were tend to be used for "looking up" related data.  Probably
not the best of naming conventions but just the one I use and have stuck
with.

On 4/14/06, Ryan Guill <[EMAIL PROTECTED]> wrote:
>
> Personally, I always make the primary key of a single table,
> tablenameID, so if its a user table, the primary key is userID.  If
> userid is used as a foreign key anywhere else in my database, its
> called userID.  A better way to put it is, if I have the same
> columnname in two tables, its a foreign key.  And usually the ID at
> the end of any column can tip you off to that fact.
>
> But thats just me personally.
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238240
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to