Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Indexing by number or by varchar2
This is a very good question, and one that is often debated. Here is my approach:
This is the guideline I use, but your situation might be different. for instance, if user's will need to change what would otherwise be the PK in a parent table, then use artificial keys in all the tables. If you want to prevent user's from changing the PK in parent tables, then use meaningful keys.
Hope this helps,
Dave
Inaki Agirre wrote in message <35211663.379D7D0_at_si.unirioja.es>...
>Quick question
>
>If I must implement some codification, does it pay to define the primary
>column as number or could I use a meaningful varchar2, say, (3) length.
>--
>Inaki Ekaitz Agirre
>inaki.agirre_at_si.unirioja.es
Received on Thu Apr 02 1998 - 00:00:00 CST
![]() |
![]() |