Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Column name
Yes you can use the same column name in a database and in a schema. The only thing is that you have to precede the field with the table name when you're joining 2 tables containing columns with the same name.
Let's open a can of worm.
There are 2 stands on this :
1. Something should have the same name everywhere in
the DB. For example, product_id should be product_id
in the product table and in the monthly sales table.
2. Each column should be prefix by the table abbreviation so in the product table it is prd_product_id and in the monthly sales table something like mthlysl_product_id.
Personnaly, I prefer the first one.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?iso-8859-1?q?paquette=20stephane?= INET: stephane_paquette_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Apr 27 2001 - 06:46:50 CDT
![]() |
![]() |