Re: Column Naming

From: Date: Mon, 05 May 2003 23:03:51 +0000
Subject: Re: Column Naming
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-27546@lists.php.net to get a copy of this message
I have a table called Files which holds data about Files held for a project. I also have a table called user. I want the Files table to hold data about who has the file checked out and who initially uploaded the file. Since these two fields will be foriegn keys relating to User.User_ID how can i contain this data in the table - I can't have two columns called User_ID in my Files table...
Although it's common for related columns in two tables to have the same name, it's not required. Call one "upload_user" and the other "checkout_user" (or whatever) and you'll be just fine. Larry

« previous php.db (#27546) next »